[Scummvm-cvs-logs] SF.net SVN: scummvm:[40924] scummvm/trunk/engines/sci/engine/kgraphics.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Tue May 26 21:16:24 CEST 2009
Revision: 40924
http://scummvm.svn.sourceforge.net/scummvm/?rev=40924&view=rev
Author: thebluegr
Date: 2009-05-26 19:16:24 +0000 (Tue, 26 May 2009)
Log Message:
-----------
Fixed regression in Longbow
Modified Paths:
--------------
scummvm/trunk/engines/sci/engine/kgraphics.cpp
Modified: scummvm/trunk/engines/sci/engine/kgraphics.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kgraphics.cpp 2009-05-26 19:12:09 UTC (rev 40923)
+++ scummvm/trunk/engines/sci/engine/kgraphics.cpp 2009-05-26 19:16:24 UTC (rev 40924)
@@ -2369,15 +2369,15 @@
return s->r_acc;
}
+ // Notify the graphics resource manager that the pic port bounds changed
+ s->gfx_state->gfxResMan->changePortBounds(UKPV(5), UKPV(4), UKPV(3) + UKPV(5), UKPV(2) + UKPV(4));
+
// LSL6 calls kSetPort to extend the screen to draw the GUI. If we free all resources
// here, the background picture is freed too, and this makes everything a big mess.
// FIXME/TODO: This code really needs to be rewritten to conform to the original behavior
if (s->_gameName != "LSL6") {
s->gfx_state->pic_port_bounds = gfx_rect(UKPV(5), UKPV(4), UKPV(3), UKPV(2));
- // Notify the graphics resource manager that the pic port bounds changed
- s->gfx_state->gfxResMan->changePortBounds(UKPV(5), UKPV(4), UKPV(3) - UKPV(5), UKPV(2) - UKPV(4));
-
// FIXME: Should really only invalidate all loaded pic resources here;
// this is overkill
s->gfx_state->gfxResMan->freeAllResources();
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