[Scummvm-cvs-logs] SF.net SVN: scummvm:[35657] scummvm/trunk/graphics/surface.h

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Fri Jan 2 00:54:09 CET 2009


Revision: 35657
          http://scummvm.svn.sourceforge.net/scummvm/?rev=35657&view=rev
Author:   lordhoto
Date:     2009-01-01 23:54:09 +0000 (Thu, 01 Jan 2009)

Log Message:
-----------
Cleanup.

Modified Paths:
--------------
    scummvm/trunk/graphics/surface.h

Modified: scummvm/trunk/graphics/surface.h
===================================================================
--- scummvm/trunk/graphics/surface.h	2009-01-01 22:49:44 UTC (rev 35656)
+++ scummvm/trunk/graphics/surface.h	2009-01-01 23:54:09 UTC (rev 35657)
@@ -47,11 +47,11 @@
 	Surface() : w(0), h(0), pitch(0), pixels(0), bytesPerPixel(0) {}
 
 	inline const void *getBasePtr(int x, int y) const {
-		return static_cast<const void *>(static_cast<byte *>(pixels) + y * pitch + x * bytesPerPixel);
+		return static_cast<const byte *>(pixels) + y * pitch + x * bytesPerPixel;
 	}
 
 	inline void *getBasePtr(int x, int y) {
-		return static_cast<void *>(static_cast<byte *>(pixels) + y * pitch + x * bytesPerPixel);
+		return static_cast<byte *>(pixels) + y * pitch + x * bytesPerPixel;
 	}
 
 	/**


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