Use the SDL_Surface dimensions