STR 3461: fix menu linespacing

This commit is contained in:
Matthias Melcher 2023-01-20 13:44:13 +01:00
parent 18aaa32e45
commit f4620329f1
1 changed files with 2 additions and 2 deletions

View File

@ -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) {