[Scummvm-cvs-logs] SF.net SVN: scummvm:[43745] scummvm/branches/branch-1-0-0/engines/cine

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Wed Aug 26 01:24:35 CEST 2009


Revision: 43745
          http://scummvm.svn.sourceforge.net/scummvm/?rev=43745&view=rev
Author:   lordhoto
Date:     2009-08-25 23:24:35 +0000 (Tue, 25 Aug 2009)

Log Message:
-----------
Backport of bug fix for #2843080 and #2843081.

Modified Paths:
--------------
    scummvm/branches/branch-1-0-0/engines/cine/cine.cpp
    scummvm/branches/branch-1-0-0/engines/cine/gfx.cpp
    scummvm/branches/branch-1-0-0/engines/cine/gfx.h

Modified: scummvm/branches/branch-1-0-0/engines/cine/cine.cpp
===================================================================
--- scummvm/branches/branch-1-0-0/engines/cine/cine.cpp	2009-08-25 23:15:18 UTC (rev 43744)
+++ scummvm/branches/branch-1-0-0/engines/cine/cine.cpp	2009-08-25 23:24:35 UTC (rev 43745)
@@ -143,6 +143,8 @@
 		renderer = new FWRenderer;
 	}
 
+	renderer->initialize();
+
 	collisionPage = new byte[320 * 200];
 
 	// Clear part buffer as there's nothing loaded into it yet.

Modified: scummvm/branches/branch-1-0-0/engines/cine/gfx.cpp
===================================================================
--- scummvm/branches/branch-1-0-0/engines/cine/gfx.cpp	2009-08-25 23:15:18 UTC (rev 43744)
+++ scummvm/branches/branch-1-0-0/engines/cine/gfx.cpp	2009-08-25 23:24:35 UTC (rev 43745)
@@ -107,6 +107,11 @@
 	delete[] _backBuffer;
 }
 
+bool FWRenderer::initialize() {
+	_activePal = Palette(kLowPalFormat, kLowPalNumColors);
+	return true;
+}
+
 /* \brief Reset renderer state
  */
 void FWRenderer::clear() {
@@ -888,6 +893,11 @@
 	}
 }
 
+bool OSRenderer::initialize() {
+	_activePal = Palette(kHighPalFormat, kHighPalNumColors);
+	return true;
+}
+
 /*! \brief Reset Operation Stealth renderer state
  */
 void OSRenderer::clear() {

Modified: scummvm/branches/branch-1-0-0/engines/cine/gfx.h
===================================================================
--- scummvm/branches/branch-1-0-0/engines/cine/gfx.h	2009-08-25 23:15:18 UTC (rev 43744)
+++ scummvm/branches/branch-1-0-0/engines/cine/gfx.h	2009-08-25 23:24:35 UTC (rev 43745)
@@ -109,6 +109,8 @@
 	FWRenderer();
 	virtual ~FWRenderer();
 
+	virtual bool initialize();
+
 	/*! \brief Test if renderer is ready to draw */
 	virtual bool ready() { return _background != NULL; }
 
@@ -167,6 +169,8 @@
 	OSRenderer();
 	~OSRenderer();
 
+	bool initialize();
+
 	/*! \brief Test if renderer is ready to draw */
 	bool ready() { return _bgTable[_currentBg].bg != NULL; }
 


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