src/video/windx5/SDL_dx5video.c
changeset 440 791d5ce383bc
parent 376 a5f60a847a89
child 442 b37ce4813ad4
equal deleted inserted replaced
439:3ac8344e3872 440:791d5ce383bc
  1918 {
  1918 {
  1919 	HRESULT result;
  1919 	HRESULT result;
  1920 	LPDIRECTDRAWSURFACE3 dd_surface;
  1920 	LPDIRECTDRAWSURFACE3 dd_surface;
  1921 
  1921 
  1922 	dd_surface = surface->hwdata->dd_surface;
  1922 	dd_surface = surface->hwdata->dd_surface;
  1923 	result = IDirectDrawSurface3_Flip(dd_surface, NULL, DDFLIP_WAIT);
  1923 	result = IDirectDrawSurface3_Flip(dd_surface, NULL, 0);
  1924 	if ( result == DDERR_SURFACELOST ) {
  1924 	if ( result == DDERR_SURFACELOST ) {
  1925 		result = IDirectDrawSurface3_Restore(
  1925 		result = IDirectDrawSurface3_Restore(
  1926 						surface->hwdata->dd_surface);
  1926 						surface->hwdata->dd_surface);
  1927 		result = IDirectDrawSurface3_Flip(dd_surface,NULL,DDFLIP_WAIT);
  1927 		result = IDirectDrawSurface3_Flip(dd_surface, NULL, 0);
  1928 	}
  1928 	}
  1929 	if ( result != DD_OK ) {
  1929 	if ( result != DD_OK ) {
  1930 		SetDDerror("DirectDrawSurface3::Flip", result);
  1930 		SetDDerror("DirectDrawSurface3::Flip", result);
  1931 		return(-1);
  1931 		return(-1);
  1932 	}
  1932 	}