[Scummvm-cvs-logs] SF.net SVN: scummvm:[42540] scummvm/trunk/gui/console.cpp
tanoku at users.sourceforge.net
tanoku at users.sourceforge.net
Thu Jul 16 19:51:12 CEST 2009
Revision: 42540
http://scummvm.svn.sourceforge.net/scummvm/?rev=42540&view=rev
Author: tanoku
Date: 2009-07-16 17:51:12 +0000 (Thu, 16 Jul 2009)
Log Message:
-----------
Fixed bug: In-game console doesn't stay centered when switching resolutions on the fly.
Modified Paths:
--------------
scummvm/trunk/gui/console.cpp
Modified: scummvm/trunk/gui/console.cpp
===================================================================
--- scummvm/trunk/gui/console.cpp 2009-07-16 17:44:05 UTC (rev 42539)
+++ scummvm/trunk/gui/console.cpp 2009-07-16 17:51:12 UTC (rev 42540)
@@ -112,6 +112,7 @@
_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 @@
if (_w != w || _h != h)
init();
- _x = _w / 40;
_y = -_h;
+
_slideTime = g_system->getMillis();
_slideMode = kDownSlideMode;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list