diff options
Diffstat (limited to 'gui/console.cpp')
-rw-r--r-- | gui/console.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gui/console.cpp b/gui/console.cpp index cad65b03d6..92e5132c22 100644 --- a/gui/console.cpp +++ b/gui/console.cpp @@ -114,11 +114,7 @@ void ConsoleDialog::init() { _h = _h * kConsoleLineHeight + 2; // Set scrollbar dimensions - int scrollBarWidth; - if (g_gui.getWidgetSize() == kBigWidgetSize) - scrollBarWidth = kBigScrollBarWidth; - else - scrollBarWidth = kNormalScrollBarWidth; + int scrollBarWidth = g_gui.xmlEval()->getVar("Globals.Scrollbar.Width", 0); _scrollBar->resize(_w - scrollBarWidth - 1, 0, scrollBarWidth, _h); _pageWidth = (_w - scrollBarWidth - 2 - _leftPadding - _topPadding - scrollBarWidth) / kConsoleCharWidth; |