summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-04-29 18:00:19 (GMT)
committerErwan Velu <erwan.velu@free.fr>2009-04-29 18:00:19 (GMT)
commitd222f57d5fce7908f7cca3f32546ac789e8b3f4d (patch)
treef88f6deb3c8fe7ae9dec1547b17bdc0afa876a40
parent2d34df8a37030e609ec867c33c0f84a73d902058 (diff)
downloadhdt-d222f57d5fce7908f7cca3f32546ac789e8b3f4d.zip
hdt-d222f57d5fce7908f7cca3f32546ac789e8b3f4d.tar.gz
hdt-d222f57d5fce7908f7cca3f32546ac789e8b3f4d.tar.bz2
hdt-d222f57d5fce7908f7cca3f32546ac789e8b3f4d.tar.xz
cmenu: fixing getnumrows values
Impact: Allow users to use 25 lines instead of 24 Prior to that commit it was impossible to setup a 25 lines menu
-rw-r--r--com32/cmenu/libmenu/com32io.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/cmenu/libmenu/com32io.h b/com32/cmenu/libmenu/com32io.h
index 78ce72f..c95c0cd 100644
--- a/com32/cmenu/libmenu/com32io.h
+++ b/com32/cmenu/libmenu/com32io.h
@@ -71,7 +71,7 @@ static inline unsigned char readbiosb(unsigned int ofs)
static inline char getnumrows()
{
- return readbiosb(0x484); // Actually numrows - 1
+ return readbiosb(0x484)+1; // Actually numrows - 1
}
static inline char getnumcols(void)