src/video/SDL_video.c
changeset 306 3879bed3395c
parent 297 f6ffac90895c
child 313 67ad846ed21c
--- a/src/video/SDL_video.c	Sun Mar 10 03:33:59 2002 +0000
+++ b/src/video/SDL_video.c	Sun Mar 10 03:38:32 2002 +0000
@@ -844,7 +844,10 @@
 		return(NULL);
 	}
 	/* Set the flags appropriate for copying to display surface */
-	flags  = (SDL_PublicSurface->flags&SDL_HWSURFACE);
+	if ((SDL_PublicSurface->flags&SDL_HWSURFACE == SDL_HWSURFACE) && current_video->info.blit_hw)
+		flags = SDL_HWSURFACE;
+	else 
+		flags = SDL_SWSURFACE;
 #ifdef AUTORLE_DISPLAYFORMAT
 	flags |= (surface->flags & (SDL_SRCCOLORKEY|SDL_SRCALPHA));
 	flags |= SDL_RLEACCELOK;