src/video/SDL_video.c
changeset 580 be6495850a62
parent 567 969fbd4dcd4e
child 610 95433459fbd2
     1.1 --- a/src/video/SDL_video.c	Tue Jan 21 09:36:41 2003 +0000
     1.2 +++ b/src/video/SDL_video.c	Sun Jan 26 04:30:18 2003 +0000
     1.3 @@ -836,7 +836,10 @@
     1.4  		   as soon as they are performed, so we need to buffer them
     1.5  		 */
     1.6  	     (   ((flags&SDL_HWSURFACE) == SDL_SWSURFACE) &&
     1.7 -				(SDL_VideoSurface->flags&SDL_HWSURFACE))
     1.8 +				(SDL_VideoSurface->flags&SDL_HWSURFACE)) ||
     1.9 +	     (   (flags&SDL_DOUBLEBUF) &&
    1.10 +				(SDL_VideoSurface->flags&SDL_HWSURFACE) &&
    1.11 +				!(SDL_VideoSurface->flags&SDL_DOUBLEBUF))
    1.12  	     ) ) {
    1.13  		SDL_CreateShadowSurface(bpp);
    1.14  		if ( SDL_ShadowSurface == NULL ) {