diff src/video/bwindow/SDL_sysvideo.cc @ 206:b69bb2a368a0

Fixed flashing the screen when creating a window on BeOS
author Sam Lantinga <slouken@libsdl.org>
date Sun, 14 Oct 2001 20:30:10 +0000
parents 7be1046c4a68
children e8157fcb3114
line wrap: on
line diff
--- a/src/video/bwindow/SDL_sysvideo.cc	Sun Oct 14 19:49:02 2001 +0000
+++ b/src/video/bwindow/SDL_sysvideo.cc	Sun Oct 14 20:30:10 2001 +0000
@@ -393,7 +393,7 @@
 			}
 		}
 	}
-	if ( ! fullscreen ) {
+	if ( was_fullscreen && ! fullscreen ) {
 		bscreen.SetMode(&saved_mode);
 	}
 
@@ -485,7 +485,6 @@
 		current->pitch = 0;
 		current->pixels = NULL;
 		_this->UpdateRects = NULL;		
-		//		_this->ToggleFullScreen = NULL;
 	} else {
 		/* Create the BBitmap framebuffer */
 		bounds.top = 0; bounds.left = 0;