diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-01-20 13:44:13 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-01-20 13:44:13 +0100 |
| commit | f4620329f16ed92e938a42d6c5803ed5061f1b45 (patch) | |
| tree | ecf89b18e7b90a2d953b1356001ec1912d09049b /src/Fl_Menu.cxx | |
| parent | 18aaa32e4597eb8ceebf50c47ff6c974c92f64a3 (diff) | |
STR 3461: fix menu linespacing
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 e202a530c..8381937f0 100644 --- a/src/Fl_Menu.cxx +++ b/src/Fl_Menu.cxx @@ -444,7 +444,7 @@ menuwindow::menuwindow(const Fl_Menu_Item* m, int X, int Y, int Wp, int Hp, //if (X > scr_x+scr_w-W) X = right_edge-W; if (X > scr_x+scr_w-W) X = scr_x+scr_w-W; x(X); w(W); - h((numitems ? itemheight*numitems-Fl::menu_linespacing() : 0)+2*BW+3); + h((numitems ? itemheight*numitems-4 : 0)+2*BW+3); if (selected >= 0) { Y = Y+(Hp-itemheight)/2-selected*itemheight-BW; } else { @@ -527,7 +527,7 @@ void menuwindow::drawentry(const Fl_Menu_Item* m, int n, int eraseit) { int xx = BW; int W = w(); int ww = W-2*BW-1; - int yy = BW+1+n*itemheight; + int yy = BW+1+n*itemheight+Fl::menu_linespacing()/2-2; int hh = itemheight - Fl::menu_linespacing(); if (eraseit && n != selected) { |
