projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
886fc4b
)
Fix for wrong lightmap size in fullscreen
author
Tobias Markus
<tobbi@mozilla-uk.org>
Wed, 6 Aug 2014 12:26:28 +0000
(14:26 +0200)
committer
Tobias Markus
<tobbi@mozilla-uk.org>
Wed, 6 Aug 2014 12:26:28 +0000
(14:26 +0200)
src/video/sdl/sdl_lightmap.cpp
patch
|
blob
|
history
diff --git
a/src/video/sdl/sdl_lightmap.cpp
b/src/video/sdl/sdl_lightmap.cpp
index
d714960
..
9638c2a
100644
(file)
--- 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<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;