From 5e78c98caef09b0b6521d6c81ec56b32cdf66235 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Thu, 31 Dec 2009 02:33:56 -0600 Subject: [PATCH] Try to fill the screen at startup. --- src/gui/ui.fl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/gui/ui.fl b/src/gui/ui.fl index 6ed9405..7abcbd4 100644 --- a/src/gui/ui.fl +++ b/src/gui/ui.fl @@ -134,6 +134,15 @@ Fl::add_handler( shortcut_handler ); // use old focus behavior Fl::visible_focus( 0 ); +// try to fill the screen +{ + int sx, sy, sw, sh; + + Fl::screen_xywh( sx, sy, sw, sh ); + + main_window->resize( sx, sy, sw, sh ); +} + main_window->show(); Fl::add_timeout( TRANSPORT_POLL_INTERVAL, update_transport );