Fixed flashing the screen when creating a window on BeOS

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40207
This commit is contained in:
Sam Lantinga 2001-10-14 20:30:10 +00:00
parent 9fa42d19f6
commit ff44030b80
2 changed files with 2 additions and 2 deletions

View File

@ -16,6 +16,7 @@ be found at the <A HREF="http://www.libsdl.org/"> main SDL page</A>.
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)

View File

@ -393,7 +393,7 @@ static int BE_SetFullScreen(_THIS, SDL_Surface *screen, int fullscreen)
}
}
}
if ( ! fullscreen ) {
if ( was_fullscreen && ! fullscreen ) {
bscreen.SetMode(&saved_mode);
}
@ -485,7 +485,6 @@ SDL_Surface *BE_SetVideoMode(_THIS, SDL_Surface *current,
current->pitch = 0;
current->pixels = NULL;
_this->UpdateRects = NULL;
// _this->ToggleFullScreen = NULL;
} else {
/* Create the BBitmap framebuffer */
bounds.top = 0; bounds.left = 0;