Skip to content

Commit

Permalink
Make the temporary black window be the maximum of all visible dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 4, 2009
1 parent a54f337 commit 769d5d9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/video/x11/SDL_x11modes.c
Expand Up @@ -1008,12 +1008,8 @@ int X11_EnterFullScreen(_THIS)
screen_w = DisplayWidth(SDL_Display, SDL_Screen);
screen_h = DisplayHeight(SDL_Display, SDL_Screen);
get_real_resolution(this, &real_w, &real_h);
if ( window_w > real_w ) {
real_w = MAX(real_w, screen_w);
}
if ( window_h > real_h ) {
real_h = MAX(real_h, screen_h);
}
real_w = MAX(window_w, MAX(real_w, screen_w));
real_h = MAX(window_h, MAX(real_h, screen_h));
XMoveResizeWindow(SDL_Display, FSwindow,
x, y, real_w, real_h);
XMapRaised(SDL_Display, FSwindow);
Expand Down

0 comments on commit 769d5d9

Please sign in to comment.