diff options
Diffstat (limited to 'gui/console.cpp')
-rw-r--r-- | gui/console.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/console.cpp b/gui/console.cpp index a97dec3d86..e420253a00 100644 --- a/gui/console.cpp +++ b/gui/console.cpp @@ -80,10 +80,10 @@ ConsoleDialog::ConsoleDialog(float widthPercent, float heightPercent) void ConsoleDialog::reflowLayout() { // Calculate the real width/height (rounded to char/line multiples) - _w = (uint16)(_widthPercent * g_system->get_overlay_width()); -// _w = (_widthPercent * g_system->get_overlay_width() - kScrollBarWidth - 2) / kCharWidth; + _w = (uint16)(_widthPercent * g_system->getOverlayWidth()); +// _w = (_widthPercent * g_system->getOverlayWidth() - kScrollBarWidth - 2) / kCharWidth; // _w = _w * kCharWidth + kScrollBarWidth + 2; - _h = (uint16)((_heightPercent * g_system->get_overlay_height() - 2) / kLineHeight); + _h = (uint16)((_heightPercent * g_system->getOverlayHeight() - 2) / kLineHeight); _h = _h * kLineHeight + 2; // Calculate depending values |