[Scummvm-cvs-logs] SF.net SVN: scummvm: [29522] scummvm/trunk/graphics/surface.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Sat Nov 17 00:39:14 CET 2007
Revision: 29522
http://scummvm.svn.sourceforge.net/scummvm/?rev=29522&view=rev
Author: lordhoto
Date: 2007-11-16 15:39:14 -0800 (Fri, 16 Nov 2007)
Log Message:
-----------
Added assert for bit depth in Surface::move.
Modified Paths:
--------------
scummvm/trunk/graphics/surface.cpp
Modified: scummvm/trunk/graphics/surface.cpp
===================================================================
--- scummvm/trunk/graphics/surface.cpp 2007-11-16 23:34:58 UTC (rev 29521)
+++ scummvm/trunk/graphics/surface.cpp 2007-11-16 23:39:14 UTC (rev 29522)
@@ -163,6 +163,9 @@
// to support 16bpp (or marked as just working for 8bpp
// surfaces).
void Surface::move(int dx, int dy, int height) {
+ // This function currently just works with 8bpp surfaces
+ assert(bytesPerPixel == 1);
+
// Short circuit check - do we have to do anything anyway?
if ((dx == 0 && dy == 0) || height <= 0)
return;
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