[Scummvm-cvs-logs] SF.net SVN: scummvm:[49947] scummvm/trunk/engines/sci/graphics/ports.cpp
m_kiewitz at users.sourceforge.net
m_kiewitz at users.sourceforge.net
Thu Jun 17 21:42:35 CEST 2010
Revision: 49947
http://scummvm.svn.sourceforge.net/scummvm/?rev=49947&view=rev
Author: m_kiewitz
Date: 2010-06-17 19:42:34 +0000 (Thu, 17 Jun 2010)
Log Message:
-----------
SCI: dont subtract offTop on wmgrPort when using old gfx functions - fixes about window in pq2
Modified Paths:
--------------
scummvm/trunk/engines/sci/graphics/ports.cpp
Modified: scummvm/trunk/engines/sci/graphics/ports.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/ports.cpp 2010-06-17 19:15:23 UTC (rev 49946)
+++ scummvm/trunk/engines/sci/graphics/ports.cpp 2010-06-17 19:42:34 UTC (rev 49947)
@@ -95,9 +95,12 @@
setPort(_wmgrPort);
// SCI0 games till kq4 (.502 - not including) did not adjust against _wmgrPort in kNewWindow
// We leave _wmgrPort top at 0, so the adjustment wont get done
- if (!g_sci->_features->usesOldGfxFunctions())
+ if (!g_sci->_features->usesOldGfxFunctions()) {
setOrigin(0, offTop);
- _wmgrPort->rect.bottom = _screen->getHeight() - offTop;
+ _wmgrPort->rect.bottom = _screen->getHeight() - offTop;
+ } else {
+ _wmgrPort->rect.bottom = _screen->getHeight();
+ }
_wmgrPort->rect.right = _screen->getWidth();
_wmgrPort->rect.moveTo(0, 0);
_wmgrPort->curTop = 0;
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