[Scummvm-cvs-logs] SF.net SVN: scummvm: [28839] scummvm/trunk/engines/agi/preagi_mickey.cpp

mthreepwood at users.sourceforge.net mthreepwood at users.sourceforge.net
Mon Sep 3 03:29:11 CEST 2007


Revision: 28839
          http://scummvm.svn.sourceforge.net/scummvm/?rev=28839&view=rev
Author:   mthreepwood
Date:     2007-09-02 18:29:10 -0700 (Sun, 02 Sep 2007)

Log Message:
-----------
fix flashScreen

Modified Paths:
--------------
    scummvm/trunk/engines/agi/preagi_mickey.cpp

Modified: scummvm/trunk/engines/agi/preagi_mickey.cpp
===================================================================
--- scummvm/trunk/engines/agi/preagi_mickey.cpp	2007-09-03 00:47:51 UTC (rev 28838)
+++ scummvm/trunk/engines/agi/preagi_mickey.cpp	2007-09-03 01:29:10 UTC (rev 28839)
@@ -1133,10 +1133,18 @@
 void Mickey::flashScreen() {
 	//playSound(IDI_MSA_SND_PRESS_BLUE);	// TODO
 
-	_vm->_gfx->drawRectangle(20, 0, IDI_MSA_PIC_WIDTH, IDI_MSA_PIC_HEIGHT - 1, 15);	// clear GFX screen
+	//Set screen to white
+	_vm->_gfx->clearScreen(15);
 	_vm->_gfx->doUpdate();
 	_vm->_system->updateScreen();	// TODO: this should go in the game's main loop
 
+	_vm->_system->delayMillis(25);
+
+	//Set back to black
+	_vm->_gfx->clearScreen(0);
+	_vm->_gfx->doUpdate();
+	_vm->_system->updateScreen();	// TODO: this should go in the game's main loop
+
 	drawRoom();
 	printDesc(game.iRoom);
 	_vm->_gfx->doUpdate();


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