aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/surface.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/surface.h b/graphics/surface.h
index e6b31e3ccf..387f492a2c 100644
--- a/graphics/surface.h
+++ b/graphics/surface.h
@@ -47,11 +47,11 @@ 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 void *>(static_cast<byte *>(pixels) + y * pitch + x * bytesPerPixel);
+ return static_cast<const byte *>(pixels) + y * pitch + x * bytesPerPixel;
}
inline void *getBasePtr(int x, int y) {
- return static_cast<void *>(static_cast<byte *>(pixels) + y * pitch + x * bytesPerPixel);
+ return static_cast<byte *>(pixels) + y * pitch + x * bytesPerPixel;
}
/**