(svn r15233) -Fix (r15231): compilation with SDL broken on win32

This commit is contained in:
glx
2009-01-23 17:32:01 +00:00
parent 48125a6d5f
commit a3dc092ebc
2 changed files with 2 additions and 1 deletions

View File

@@ -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;
}