Skip to content

Commit

Permalink
Control screen used by Fl_Menu_Bar::play_menu()
Browse files Browse the repository at this point in the history
  • Loading branch information
ManoloFLTK committed May 23, 2024
1 parent 614d551 commit 0a6610c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Fl_Menu.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ menuwindow::menuwindow(const Fl_Menu_Item* m, int X, int Y, int Wp, int Hp,
menubartitle = menubar_title;
origin = NULL;
offset_y = 0;

Fl_Window_Driver::driver(this)->menu_window_area(scr_x, scr_y, scr_w, scr_h);
int n = (Wp > 0 ? Fl::screen_num(X, Y, Wp, Hp) : -1);
Fl_Window_Driver::driver(this)->menu_window_area(scr_x, scr_y, scr_w, scr_h, n);
if (!right_edge || right_edge > scr_x+scr_w) right_edge = scr_x+scr_w;

if (m) m = m->first(); // find the first item that needs to be rendered
Expand Down

0 comments on commit 0a6610c

Please sign in to comment.