diff options
author | Max Horn | 2009-01-05 20:12:25 +0000 |
---|---|---|
committer | Max Horn | 2009-01-05 20:12:25 +0000 |
commit | d104e6fe3358124f4517c6fc5512bc966182b949 (patch) | |
tree | 00bdfcb9c147f59a151f30e307c9710843aea14f /graphics | |
parent | ba876efa151d3629e50b22df2b38bcbd65aff1a2 (diff) | |
download | scummvm-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')
-rw-r--r-- | graphics/surface.h | 2 |
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) { |