From e004784d23bf14c8176a1a394c32fbe01c7c488f Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 29 Oct 2018 20:53:39 -0700 Subject: GLK: Fix calculation of text grid height --- engines/gargoyle/window_text_grid.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/engines/gargoyle/window_text_grid.cpp b/engines/gargoyle/window_text_grid.cpp index 6d1aff4946..6945aca751 100644 --- a/engines/gargoyle/window_text_grid.cpp +++ b/engines/gargoyle/window_text_grid.cpp @@ -80,8 +80,7 @@ void TextGridWindow::touch(int line) { } glui32 TextGridWindow::getSplit(glui32 size, bool vertical) const { - return vertical ? size * g_conf->_cellW + g_conf->_tMarginX * 2 : - size * g_conf->_cellH + g_conf->_tMarginY * 2; + return vertical ? size * g_conf->_cellW : size * g_conf->_cellH; } void TextGridWindow::putCharUni(uint32 ch) { -- cgit v1.2.3