diff options
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) { |