changeset 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 13161d3d349d
children c03846dd489b
files docs.html src/video/bwindow/SDL_sysvideo.cc
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;