From 802f4c572fa1dd9bdd9ef41e526c4d0e3aa612d8 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Tue, 28 Feb 2012 23:23:30 -0800 Subject: [PATCH] Only attempt to fill the screen when the screen is smaller than the window. --- src/gui/ui.fl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/ui.fl b/src/gui/ui.fl index 2b525ad..0045285 100644 --- a/src/gui/ui.fl +++ b/src/gui/ui.fl @@ -149,13 +149,14 @@ Fl::add_handler( shortcut_handler ); // use old focus behavior Fl::visible_focus( 0 ); -// try to fill the screen +// try to fill the screen, but only when the screen is tiny and our window is huge. { int sx, sy, sw, sh; Fl::screen_xywh( sx, sy, sw, sh ); - main_window->resize( sx, sy, sw, sh ); + if ( sw < main_window->w() || sh < main_window->h() ) + main_window->resize( sx, sy, sw, sh ); } main_window->show();