aboutsummaryrefslogtreecommitdiff
path: root/graphics/surface.h
diff options
context:
space:
mode:
authorMax Horn2009-01-05 20:12:25 +0000
committerMax Horn2009-01-05 20:12:25 +0000
commitd104e6fe3358124f4517c6fc5512bc966182b949 (patch)
tree00bdfcb9c147f59a151f30e307c9710843aea14f /graphics/surface.h
parentba876efa151d3629e50b22df2b38bcbd65aff1a2 (diff)
downloadscummvm-rg350-d104e6fe3358124f4517c6fc5512bc966182b949.tar.gz
scummvm-rg350-d104e6fe3358124f4517c6fc5512bc966182b949.tar.bz2
scummvm-rg350-d104e6fe3358124f4517c6fc5512bc966182b949.zip
Workaround issue in Graphics::Surface code on Haiku
svn-id: r35745
Diffstat (limited to 'graphics/surface.h')
-rw-r--r--graphics/surface.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/surface.h b/graphics/surface.h
index 387f492a2c..20ab816236 100644
--- a/graphics/surface.h
+++ b/graphics/surface.h
@@ -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) {