Browse Source

Only attempt to fill the screen when the screen is smaller than the window.

tags/non-sequencer-v1.9.4
Jonathan Moore Liles 13 years ago
parent
commit
802f4c572f
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/gui/ui.fl

+ 3
- 2
src/gui/ui.fl View File

@@ -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();


Loading…
Cancel
Save