Mercurial > sdl-ios-xcode
diff src/video/windx5/SDL_dx5video.c @ 440:791d5ce383bc
Removed DDFLIP_WAIT flag from DirectX flip for improved performance
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 17 Aug 2002 18:11:23 +0000 |
parents | a5f60a847a89 |
children | b37ce4813ad4 |
line wrap: on
line diff
--- a/src/video/windx5/SDL_dx5video.c Sat Aug 17 18:03:06 2002 +0000 +++ b/src/video/windx5/SDL_dx5video.c Sat Aug 17 18:11:23 2002 +0000 @@ -1920,11 +1920,11 @@ LPDIRECTDRAWSURFACE3 dd_surface; dd_surface = surface->hwdata->dd_surface; - result = IDirectDrawSurface3_Flip(dd_surface, NULL, DDFLIP_WAIT); + result = IDirectDrawSurface3_Flip(dd_surface, NULL, 0); if ( result == DDERR_SURFACELOST ) { result = IDirectDrawSurface3_Restore( surface->hwdata->dd_surface); - result = IDirectDrawSurface3_Flip(dd_surface,NULL,DDFLIP_WAIT); + result = IDirectDrawSurface3_Flip(dd_surface, NULL, 0); } if ( result != DD_OK ) { SetDDerror("DirectDrawSurface3::Flip", result);