src/video/windx5/SDL_dx5video.c
changeset 830 58b074c1bc59
parent 815 6176f9a0d61a
child 833 31fa08b36380
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 ) {