Timeline: Try to make the window fill the screen at startup.
This commit is contained in:
parent
00d0d733b5
commit
e2f42b1c8b
|
@ -145,11 +145,12 @@ Fl::lock();
|
||||||
}
|
}
|
||||||
Function {TLE()} {open
|
Function {TLE()} {open
|
||||||
} {
|
} {
|
||||||
code {Fl::visual( FL_DOUBLE | FL_RGB8 );
|
code {
|
||||||
|
|
||||||
|
Fl::visual( FL_DOUBLE | FL_RGB8 );
|
||||||
|
|
||||||
make_window();
|
make_window();
|
||||||
|
|
||||||
|
|
||||||
Fl::visible_focus( 0 );
|
Fl::visible_focus( 0 );
|
||||||
|
|
||||||
Fl::get_system_colors();
|
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[ 1 ] = (Fl_Color)Fl::get_color( FL_FOREGROUND_COLOR );
|
||||||
system_colors[ 2 ] = (Fl_Color)Fl::get_color( FL_BACKGROUND2_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::add_timeout( STATUS_UPDATE_FREQ, update_cb, this );
|
||||||
|
|
||||||
fl_message_icon()->box( FL_RSHADOW_BOX );
|
fl_message_icon()->box( FL_RSHADOW_BOX );
|
||||||
|
|
Loading…
Reference in New Issue