[Scummvm-cvs-logs] SF.net SVN: scummvm:[39585] scummvm/trunk/engines/parallaction/disk_br.cpp

peres001 at users.sourceforge.net peres001 at users.sourceforge.net
Sat Mar 21 16:01:46 CET 2009


Revision: 39585
          http://scummvm.svn.sourceforge.net/scummvm/?rev=39585&view=rev
Author:   peres001
Date:     2009-03-21 15:01:46 +0000 (Sat, 21 Mar 2009)

Log Message:
-----------
Some Surface tinkering, and added TODO's about it.

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/disk_br.cpp

Modified: scummvm/trunk/engines/parallaction/disk_br.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/disk_br.cpp	2009-03-21 15:00:44 UTC (rev 39584)
+++ scummvm/trunk/engines/parallaction/disk_br.cpp	2009-03-21 15:01:46 UTC (rev 39585)
@@ -486,10 +486,11 @@
 	stream = openFile("backs/" + Common::String(filename), ".bkg");
 	ILBMDecoder decoder(stream, true);
 
+	// TODO: encapsulate surface creation
 	info.bg.w = decoder.getWidth();
 	info.bg.h = decoder.getHeight();
 	info.bg.pitch = info.bg.w;
-
+	info.bg.bytesPerPixel = 1;
 	info.bg.pixels = decoder.getBitmap();
 	assert(info.bg.pixels);
 
@@ -594,9 +595,11 @@
 	Graphics::Surface* surf = new Graphics::Surface;
 	assert(surf);
 
+	// TODO: encapsulate surface creation
 	surf->w = decoder.getWidth();
 	surf->h = decoder.getHeight();
 	surf->pitch = surf->w;
+	surf->bytesPerPixel = 1;
 	surf->pixels = decoder.getBitmap();
 	assert(surf->pixels);
 


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