Skip to content

Commit

Permalink
Workaround for an FLTK window scaling bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dannye committed Nov 24, 2024
1 parent e1d0f5f commit c9bd480
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main-window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,15 @@ void Main_Window::show() {
}

void Main_Window::resize(int X, int Y, int W, int H) {
static bool fixing_scale = false;
if (is_a_rescale() && maximize_active() && !fixing_scale) {
fixing_scale = true;
un_maximize();
maximize();
fixing_scale = false;
return;
}

Fl_Double_Window::resize(X, Y, W, H);

int piano_roll_height = H - MENU_BAR_HEIGHT - TOOLBAR_HEIGHT - (ruler() ? Fl::scrollbar_size() : 0) - STATUS_BAR_HEIGHT;
Expand Down

0 comments on commit c9bd480

Please sign in to comment.