summaryrefslogtreecommitdiffstats
path: root/src/xmenu.inc
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-02-24 17:32:19 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-02-24 17:32:19 +0000
commit4d8f045d38ffc3f9640bd2566fbeaceb4b0c897c (patch)
tree07fb0ddfb3d3c4a74cbe466262bafa513316c74b /src/xmenu.inc
parentbd370325091826adfad3d0ba9ca6853137ca17a5 (diff)
downloadbootloader-theme-4d8f045d38ffc3f9640bd2566fbeaceb4b0c897c.tar
bootloader-theme-4d8f045d38ffc3f9640bd2566fbeaceb4b0c897c.tar.gz
bootloader-theme-4d8f045d38ffc3f9640bd2566fbeaceb4b0c897c.tar.bz2
bootloader-theme-4d8f045d38ffc3f9640bd2566fbeaceb4b0c897c.tar.xz
bootloader-theme-4d8f045d38ffc3f9640bd2566fbeaceb4b0c897c.zip
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.
Diffstat (limited to 'src/xmenu.inc')
-rw-r--r--src/xmenu.inc2
1 files changed, 1 insertions, 1 deletions
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