Fix for wrong lightmap size in fullscreen
authorTobias Markus <tobbi@mozilla-uk.org>
Wed, 6 Aug 2014 12:26:28 +0000 (14:26 +0200)
committerTobias Markus <tobbi@mozilla-uk.org>
Wed, 6 Aug 2014 12:26:28 +0000 (14:26 +0200)
src/video/sdl/sdl_lightmap.cpp

index d714960..9638c2a 100644 (file)
@@ -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<SDLRenderer*>(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;