[Scummvm-cvs-logs] SF.net SVN: scummvm:[35745] scummvm/trunk/graphics/surface.h
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Mon Jan 5 21:12:26 CET 2009
Revision: 35745
http://scummvm.svn.sourceforge.net/scummvm/?rev=35745&view=rev
Author: fingolfin
Date: 2009-01-05 20:12:25 +0000 (Mon, 05 Jan 2009)
Log Message:
-----------
Workaround issue in Graphics::Surface code on Haiku
Modified Paths:
--------------
scummvm/trunk/graphics/surface.h
Modified: scummvm/trunk/graphics/surface.h
===================================================================
--- scummvm/trunk/graphics/surface.h 2009-01-05 20:08:34 UTC (rev 35744)
+++ scummvm/trunk/graphics/surface.h 2009-01-05 20:12:25 UTC (rev 35745)
@@ -47,7 +47,7 @@
Surface() : w(0), h(0), pitch(0), pixels(0), bytesPerPixel(0) {}
inline const void *getBasePtr(int x, int y) const {
- return static_cast<const byte *>(pixels) + y * pitch + x * bytesPerPixel;
+ return (const byte *)(pixels) + y * pitch + x * bytesPerPixel;
}
inline void *getBasePtr(int x, int 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