From: Tobias Markus Date: Wed, 6 Aug 2014 12:26:28 +0000 (+0200) Subject: Fix for wrong lightmap size in fullscreen X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b4e6f2c3d50fd0a917c8e00a1303e084a8701629;p=supertux.git Fix for wrong lightmap size in fullscreen --- diff --git a/src/video/sdl/sdl_lightmap.cpp b/src/video/sdl/sdl_lightmap.cpp index d7149600b..9638c2a74 100644 --- a/src/video/sdl/sdl_lightmap.cpp +++ b/src/video/sdl/sdl_lightmap.cpp @@ -30,14 +30,11 @@ SDLLightmap::SDLLightmap() : { LIGHTMAP_DIV = 8; - width = 800; //screen->w / LIGHTMAP_DIV; - height = 600; //screen->h / LIGHTMAP_DIV; - SDL_Renderer* renderer = static_cast(Renderer::instance())->get_sdl_renderer(); texture = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_RGB888, SDL_TEXTUREACCESS_TARGET, - width, height); + SCREEN_WIDTH, SCREEN_HEIGHT); if (!texture) { std::stringstream msg;