aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorVicent Marti2009-07-16 17:51:12 +0000
committerVicent Marti2009-07-16 17:51:12 +0000
commit62de2d9edc7eb51240d944e7a3bfcf894519f5d4 (patch)
tree9d002f05427c6cbadc8baba376a56bd880e7a2ef /gui
parent1e3beb40c04ef323f5354e4258659764735fdb0c (diff)
downloadscummvm-rg350-62de2d9edc7eb51240d944e7a3bfcf894519f5d4.tar.gz
scummvm-rg350-62de2d9edc7eb51240d944e7a3bfcf894519f5d4.tar.bz2
scummvm-rg350-62de2d9edc7eb51240d944e7a3bfcf894519f5d4.zip
Fixed bug: In-game console doesn't stay centered when switching resolutions on the fly.
svn-id: r42540
Diffstat (limited to 'gui')
-rw-r--r--gui/console.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/console.cpp b/gui/console.cpp
index e33aa9d9fe..498d1767a6 100644
--- a/gui/console.cpp
+++ b/gui/console.cpp
@@ -112,6 +112,7 @@ void ConsoleDialog::init() {
_w = _w - _w / 20;
_h = _h * kConsoleLineHeight + 2;
+ _x = _w / 40;
// Set scrollbar dimensions
int scrollBarWidth = g_gui.xmlEval()->getVar("Globals.Scrollbar.Width", 0);
@@ -149,8 +150,8 @@ void ConsoleDialog::open() {
if (_w != w || _h != h)
init();
- _x = _w / 40;
_y = -_h;
+
_slideTime = g_system->getMillis();
_slideMode = kDownSlideMode;