projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a89f53b
)
Minor cleanup
author
Ingo Ruhnke
<grumbel@gmail.com>
Fri, 1 Aug 2014 02:14:32 +0000
(
04:14
+0200)
committer
Ingo Ruhnke
<grumbel@gmail.com>
Fri, 1 Aug 2014 02:14:32 +0000
(
04:14
+0200)
src/video/gl/gl_renderer.cpp
patch
|
blob
|
history
diff --git
a/src/video/gl/gl_renderer.cpp
b/src/video/gl/gl_renderer.cpp
index
c71de0a
..
6982845
100644
(file)
--- a/
src/video/gl/gl_renderer.cpp
+++ b/
src/video/gl/gl_renderer.cpp
@@
-602,9
+602,6
@@
GLRenderer::apply_video_mode(const Size& size, bool fullscreen)
if (fullscreen)
{
- int fullscreen_flags = SDL_WINDOW_FULLSCREEN; // SDL_WINDOW_FULLSCREEN_DESKTOP or 0
- SDL_SetWindowDisplayMode(window, NULL);
-
SDL_DisplayMode mode;
mode.format = SDL_PIXELFORMAT_RGB888;
mode.w = g_config->fullscreen_size.width;
@@
-620,7
+617,7
@@
GLRenderer::apply_video_mode(const Size& size, bool fullscreen)
}
else
{
- SDL_SetWindowFullscreen(window,
fullscreen_flags
);
+ SDL_SetWindowFullscreen(window,
SDL_WINDOW_FULLSCREEN
);
}
}
else