diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-05-23 16:38:51 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-05-23 16:38:51 +0200 |
| commit | 0a6610c480289a7cb0ecc89ce0c4447180d71069 (patch) | |
| tree | 02c381146db115da8ae11a077a9d3908d9cae9aa /src/Fl_Menu.cxx | |
| parent | 614d551d0581262c86b3e29281a5cac00e54b689 (diff) | |
Control screen used by Fl_Menu_Bar::play_menu()
Diffstat (limited to 'src/Fl_Menu.cxx')
| -rw-r--r-- | src/Fl_Menu.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Menu.cxx b/src/Fl_Menu.cxx index 53c6a6c35..328f195d9 100644 --- a/src/Fl_Menu.cxx +++ b/src/Fl_Menu.cxx @@ -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 |
