[Scummvm-cvs-logs] SF.net SVN: scummvm:[36251] scummvm/trunk/engines/agos/gfx.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Sun Feb 8 22:36:43 CET 2009


Revision: 36251
          http://scummvm.svn.sourceforge.net/scummvm/?rev=36251&view=rev
Author:   thebluegr
Date:     2009-02-08 21:36:43 +0000 (Sun, 08 Feb 2009)

Log Message:
-----------
Silenced MSVC warnings about uninitialized variables

Modified Paths:
--------------
    scummvm/trunk/engines/agos/gfx.cpp

Modified: scummvm/trunk/engines/agos/gfx.cpp
===================================================================
--- scummvm/trunk/engines/agos/gfx.cpp	2009-02-08 15:25:48 UTC (rev 36250)
+++ scummvm/trunk/engines/agos/gfx.cpp	2009-02-08 21:36:43 UTC (rev 36251)
@@ -861,7 +861,7 @@
 
 	Graphics::Surface *screen = _system->lockScreen();
 
-	uint16 xoffs, yoffs;
+	uint16 xoffs = 0, yoffs = 0;
 	if (getGameType() == GType_WW) {
 		if (_windowNum == 4 || (_windowNum >= 10 && _windowNum <= 27)) {
 			state->surf_addr = _window4BackScn;
@@ -1350,8 +1350,8 @@
 
 		Graphics::Surface *screen = _system->lockScreen();
 		byte *dst = getBackGround() + xoffs + yoffs * _screenWidth;
-		byte *src;
-		uint srcWidth;
+		byte *src = 0;
+		uint srcWidth = 0;
 
 		if (getGameType() == GType_SIMON2) {
 			src = _window4BackScn + xoffs + yoffs * 320;


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