Fix window size miscalculation caused by integer rounding.
Signed-off-by: Vitezslav Samel <vitezslav(a)samel.cz>
---
src/othptab.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/othptab.c b/src/othptab.c
index e23f39e..26de2a9 100644
--- a/src/othptab.c
+++ b/src/othptab.c
@@ -92,8 +92,8 @@ void init_othp_table(struct othptable *table)
unsigned int wintop;
unsigned int obmaxx __unused;
- winht = LINES - (LINES * 0.6) - 2;
wintop = (LINES * 0.6) + 1;
+ winht = LINES - wintop - 2;
table->count = 0;
table->lastpos = 0;
--
1.9.1