Browse Source

Timeline: Attempt to constrain main window to size of screen, but don't automatically fill the screen.

Also, set a sane minimum window size.
tags/non-daw-v1.1.0
Jonathan Moore Liles 15 years ago
parent
commit
33e4516589
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      Timeline/TLE.fl

+ 7
- 2
Timeline/TLE.fl View File

@@ -159,13 +159,18 @@ 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
// constrain window to size of screen.
{
int sx, sy, sw, sh;

Fl::screen_xywh( sx, sy, sw, sh );

main_window->resize( sx, sy, sw, sh );
main_window->size( 947, 600 );
main_window->size_range( 947, 600 );

if ( main_window->w() > sw ||
main_window->h() > sh )
main_window->resize( sx, sy, sw, sh );
}

Fl::add_timeout( STATUS_UPDATE_FREQ, update_cb, this );


Loading…
Cancel
Save