Mercurial > sdl-ios-xcode
comparison src/video/windx5/SDL_dx5video.c @ 830:58b074c1bc59
*** empty log message ***
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 16 Feb 2004 00:03:31 +0000 |
parents | 6176f9a0d61a |
children | 31fa08b36380 |
comparison
equal
deleted
inserted
replaced
829:77bca0665b69 | 830:58b074c1bc59 |
---|---|
1236 if ( (width == rect->r.w) && (height == rect->r.h) ) { | 1236 if ( (width == rect->r.w) && (height == rect->r.h) ) { |
1237 maxRefreshRate = rect->refreshRate; | 1237 maxRefreshRate = rect->refreshRate; |
1238 break; | 1238 break; |
1239 } | 1239 } |
1240 } | 1240 } |
1241 printf("refresh rate = %d Hz\n", maxRefreshRate); | 1241 #ifdef DDRAW_DEBUG |
1242 fprintf(stderr, "refresh rate = %d Hz\n", maxRefreshRate); | |
1243 #endif | |
1242 | 1244 |
1243 result = IDirectDraw2_SetDisplayMode(ddraw2, width, height, bpp, maxRefreshRate, 0); | 1245 result = IDirectDraw2_SetDisplayMode(ddraw2, width, height, bpp, maxRefreshRate, 0); |
1244 if ( result != DD_OK ) { | 1246 if ( result != DD_OK ) { |
1245 result = IDirectDraw2_SetDisplayMode(ddraw2, width, height, bpp, 0, 0); | 1247 result = IDirectDraw2_SetDisplayMode(ddraw2, width, height, bpp, 0, 0); |
1246 if ( result != DD_OK ) { | 1248 if ( result != DD_OK ) { |