From 4d8f045d38ffc3f9640bd2566fbeaceb4b0c897c Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Tue, 24 Feb 2009 17:32:19 +0000 Subject: Fix(?) off by one error which led to display corruption in the lang menu The changes to reduce the size of the status bar exhibited a bug in the way the language menu is layed out (vertical stripes all over the place). panel.text.y was 0 and we tried to substract 1 from it when trying to draw the lang menu background which didn't work too nicely. This commit is one way of fixing it (by changing the way we calculate the number of lang entries to display in one column), but I'm not sure this is the best way to do it. --- src/xmenu.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/xmenu.inc b/src/xmenu.inc index d81fd83..36686d2 100644 --- a/src/xmenu.inc +++ b/src/xmenu.inc @@ -147,7 +147,7 @@ /xmenu.lheight xmenu.font setfont fontheight xmenu.vspace dup add add def /xmenu.maxlines - panel.text.y 1 sub xmenu.lheight div + panel.text.y 2 sub xmenu.lheight div def /xmenu.columns xmenu .xm_list get length xmenu.maxlines add 1 sub xmenu.maxlines div def -- cgit v1.2.1