From 71001f23c404630ff83acf98062e66ee632fb4d6 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Thu, 1 Jan 2009 23:54:09 +0000 Subject: Cleanup. svn-id: r35657 --- graphics/surface.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'graphics') 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(static_cast(pixels) + y * pitch + x * bytesPerPixel); + return static_cast(pixels) + y * pitch + x * bytesPerPixel; } inline void *getBasePtr(int x, int y) { - return static_cast(static_cast(pixels) + y * pitch + x * bytesPerPixel); + return static_cast(pixels) + y * pitch + x * bytesPerPixel; } /** -- cgit v1.2.3