# HG changeset patch # User Sam Lantinga # Date 1043555418 0 # Node ID be6495850a626a3d1e29714acefaa320d8a54d3b # Parent 70fa3e48939975cc45390c48085f5e679b4dd92b If a double-buffered surface was requested, and a plain hardware surface was returned, we should create a shadow surface. diff -r 70fa3e489399 -r be6495850a62 src/video/SDL_video.c --- a/src/video/SDL_video.c Tue Jan 21 09:36:41 2003 +0000 +++ b/src/video/SDL_video.c Sun Jan 26 04:30:18 2003 +0000 @@ -836,7 +836,10 @@ as soon as they are performed, so we need to buffer them */ ( ((flags&SDL_HWSURFACE) == SDL_SWSURFACE) && - (SDL_VideoSurface->flags&SDL_HWSURFACE)) + (SDL_VideoSurface->flags&SDL_HWSURFACE)) || + ( (flags&SDL_DOUBLEBUF) && + (SDL_VideoSurface->flags&SDL_HWSURFACE) && + !(SDL_VideoSurface->flags&SDL_DOUBLEBUF)) ) ) { SDL_CreateShadowSurface(bpp); if ( SDL_ShadowSurface == NULL ) {