summaryrefslogtreecommitdiff
path: root/src/video
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2009-01-23 17:32:01 +0000
committerglx <glx@openttd.org>2009-01-23 17:32:01 +0000
commit0d871695633dbda2072c3c0c41a4a3f3e28874bb (patch)
tree1a5e18a6577cc11c287cacbe00dc4997313f324e /src/video
parent2a76f869a3d72aa97d75675cd892ff50c2b7289f (diff)
downloadopenttd-0d871695633dbda2072c3c0c41a4a3f3e28874bb.tar.xz
(svn r15233) -Fix (r15231): compilation with SDL broken on win32
Diffstat (limited to 'src/video')
-rw-r--r--src/video/sdl_v.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/sdl_v.cpp b/src/video/sdl_v.cpp
index d121c1800..380a3a857 100644
--- a/src/video/sdl_v.cpp
+++ b/src/video/sdl_v.cpp
@@ -119,7 +119,7 @@ static void GetVideoModes()
if (modes == (void*)-1) {
int n = 0;
for (uint i = 0; i < lengthof(_default_resolutions); i++) {
- if (SDL_VideoModeOK(_default_resolutions[i].width, _default_resolutions[i].height, 8, SDL_FULLSCREEN) != 0) {
+ if (SDL_CALL SDL_VideoModeOK(_default_resolutions[i].width, _default_resolutions[i].height, 8, SDL_FULLSCREEN) != 0) {
_resolutions[n] = _default_resolutions[i];
if (++n == lengthof(_resolutions)) break;
}