Commit 7938819e authored by Sam Lantinga's avatar Sam Lantinga

Make the temporary black window be the maximum of all visible dimensions

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403967
parent 8306ca97
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment