Fixed flashing the screen when creating a window on BeOS
authorSam Lantinga <slouken@libsdl.org>
Sun, 14 Oct 2001 20:30:10 +0000
changeset 206 b69bb2a368a0
parent 205 13161d3d349d
child 207 c03846dd489b
Fixed flashing the screen when creating a window on BeOS
docs.html
src/video/bwindow/SDL_sysvideo.cc
--- a/docs.html	Sun Oct 14 19:49:02 2001 +0000
+++ b/docs.html	Sun Oct 14 20:30:10 2001 +0000
@@ -16,6 +16,7 @@
 Major changes since SDL 1.0.0:
 </H2>
 <UL>
+	<LI> 1.2.3: Fixed flashing the screen when creating a window on BeOS
 	<LI> 1.2.3: Added double-buffering support for SVGAlib (thanks Kutak!)
 	<LI> 1.2.3: Fixed crash when using double-buffering with DGA
 	<LI> 1.2.3: Fixed resuming a paused CD on Win2K (thanks Aragorn)
--- 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;