Removed DDFLIP_WAIT flag from DirectX flip for improved performance
authorSam Lantinga <slouken@libsdl.org>
Sat, 17 Aug 2002 18:11:23 +0000
changeset 440 791d5ce383bc
parent 439 3ac8344e3872
child 441 598b25b9bffe
Removed DDFLIP_WAIT flag from DirectX flip for improved performance
src/video/windx5/SDL_dx5video.c
--- 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);