Timeline: Try to make the window fill the screen at startup.

This commit is contained in:
Jonathan Moore Liles 2009-12-26 02:25:01 -06:00
parent 00d0d733b5
commit e2f42b1c8b
1 changed files with 14 additions and 4 deletions

View File

@ -145,11 +145,12 @@ Fl::lock();
}
Function {TLE()} {open
} {
code {Fl::visual( FL_DOUBLE | FL_RGB8 );
code {
Fl::visual( FL_DOUBLE | FL_RGB8 );
make_window();
Fl::visible_focus( 0 );
Fl::get_system_colors();
@ -159,6 +160,15 @@ system_colors[ 0 ] = (Fl_Color)Fl::get_color( FL_BACKGROUND_COLOR );
system_colors[ 1 ] = (Fl_Color)Fl::get_color( FL_FOREGROUND_COLOR );
system_colors[ 2 ] = (Fl_Color)Fl::get_color( FL_BACKGROUND2_COLOR );
// try to fill the screen
{
int sx, sy, sw, sh;
Fl::screen_xywh( sx, sy, sw, sh );
main_window->resize( sx, sy, sw, sh );
}
Fl::add_timeout( STATUS_UPDATE_FREQ, update_cb, this );
fl_message_icon()->box( FL_RSHADOW_BOX );