Skip to content

Commit

Permalink
Removed DDFLIP_WAIT flag from DirectX flip for improved performance
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 17, 2002
1 parent d992ef0 commit a0fbadc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/windx5/SDL_dx5video.c
Expand Up @@ -1920,11 +1920,11 @@ static int DX5_FlipHWSurface(_THIS, SDL_Surface *surface)
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);
Expand Down

0 comments on commit a0fbadc

Please sign in to comment.