Skip to content

Commit

Permalink
Fixed flashing the screen when creating a window on BeOS
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 14, 2001
1 parent a17f219 commit bda7409
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs.html
Expand Up @@ -16,6 +16,7 @@ <H2>
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)
Expand Down
3 changes: 1 addition & 2 deletions src/video/bwindow/SDL_sysvideo.cc
Expand Up @@ -393,7 +393,7 @@ static int BE_SetFullScreen(_THIS, SDL_Surface *screen, int fullscreen)
}
}
}
if ( ! fullscreen ) {
if ( was_fullscreen && ! fullscreen ) {
bscreen.SetMode(&saved_mode);
}

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit bda7409

Please sign in to comment.