[Scummvm-cvs-logs] SF.net SVN: scummvm:[52968] scummvm/trunk/graphics/surface.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Fri Oct 1 22:44:58 CEST 2010
Revision: 52968
http://scummvm.svn.sourceforge.net/scummvm/?rev=52968&view=rev
Author: lordhoto
Date: 2010-10-01 20:44:58 +0000 (Fri, 01 Oct 2010)
Log Message:
-----------
GRAPHICS: Add BPP check to Surface::move.
Modified Paths:
--------------
scummvm/trunk/graphics/surface.cpp
Modified: scummvm/trunk/graphics/surface.cpp
===================================================================
--- scummvm/trunk/graphics/surface.cpp 2010-10-01 20:44:41 UTC (rev 52967)
+++ scummvm/trunk/graphics/surface.cpp 2010-10-01 20:44:58 UTC (rev 52968)
@@ -185,6 +185,9 @@
if ((dx == 0 && dy == 0) || height <= 0)
return;
+ if (bytesPerPixel != 1 && bytesPerPixel != 2)
+ error("Surface::move: bytesPerPixel must be 1 or 2");
+
byte *src, *dst;
int x, y;
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