Mercurial > sdl-ios-xcode
comparison 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 |
comparison
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 } |