[Scummvm-cvs-logs] SF.net SVN: scummvm: [28272] scummvm/trunk/engines/parallaction/zone.cpp
peres001 at users.sourceforge.net
peres001 at users.sourceforge.net
Sat Jul 28 17:15:23 CEST 2007
Revision: 28272
http://scummvm.svn.sourceforge.net/scummvm/?rev=28272&view=rev
Author: peres001
Date: 2007-07-28 08:15:23 -0700 (Sat, 28 Jul 2007)
Log Message:
-----------
Should fix bug #1762614. There is a chance some regression glitches appear in locations where animations are displayed together with character comments.
Modified Paths:
--------------
scummvm/trunk/engines/parallaction/zone.cpp
Modified: scummvm/trunk/engines/parallaction/zone.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/zone.cpp 2007-07-28 14:51:32 UTC (rev 28271)
+++ scummvm/trunk/engines/parallaction/zone.cpp 2007-07-28 15:15:23 UTC (rev 28272)
@@ -295,6 +295,13 @@
void Parallaction::displayCharacterComment(ExamineData *data) {
if (data->_description == NULL) return;
+ // NOTE: saving visible screen before displaying comment allows
+ // to restore the exact situation after the comment is deleted.
+ // This means animations are restored in the exact position as
+ // they were, thus avoiding clipping effect as signalled in
+ // BUG item #1762614.
+ _gfx->copyScreen(Gfx::kBitFront, Gfx::kBitBack);
+
_gfx->setFont(kFontDialogue);
_gfx->flatBlitCnv(_char._talk, 0, 190, 80, Gfx::kBitFront);
@@ -305,8 +312,6 @@
_gfx->drawBalloon(r, 0);
_gfx->displayWrappedString(data->_description, 140, 10, 0, 130);
- _gfx->updateScreen();
-
waitUntilLeftClick();
_gfx->copyScreen(Gfx::kBitBack, Gfx::kBitFront);
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