Workaround issue in Graphics::Surface code on Haiku

svn-id: r35745
This commit is contained in:
Max Horn 2009-01-05 20:12:25 +00:00
parent ba876efa15
commit d104e6fe33

View File

@ -47,7 +47,7 @@ struct Surface {
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) {