diff options
author | glx <glx@openttd.org> | 2009-01-23 17:32:01 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2009-01-23 17:32:01 +0000 |
commit | a3dc092ebcb2ed50f4208445120c2ace88d863d1 (patch) | |
tree | 1a5e18a6577cc11c287cacbe00dc4997313f324e | |
parent | 48125a6d5f1737fa4957975fc4102c174d596331 (diff) | |
download | openttd-a3dc092ebcb2ed50f4208445120c2ace88d863d1.tar.xz |
(svn r15233) -Fix (r15231): compilation with SDL broken on win32
-rw-r--r-- | src/sdl.h | 1 | ||||
-rw-r--r-- | src/video/sdl_v.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -48,6 +48,7 @@ void SdlClose(uint32 x); int (SDLCALL *SDL_SetColorKey)(SDL_Surface *, Uint32, Uint32); void (SDLCALL *SDL_WM_SetIcon)(SDL_Surface *, Uint8 *); Uint32 (SDLCALL *SDL_MapRGB)(SDL_PixelFormat *, Uint8, Uint8, Uint8); + int (SDLCALL *SDL_VideoModeOK)(int, int, int, Uint32); }; extern SDLProcs sdl_proc; 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; } |