changeset 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 3ac8344e3872
children 598b25b9bffe
files src/video/windx5/SDL_dx5video.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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);