aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorJohannes Schickel2009-01-01 23:54:09 +0000
committerJohannes Schickel2009-01-01 23:54:09 +0000
commit71001f23c404630ff83acf98062e66ee632fb4d6 (patch)
treef70172bac2c5e91167d08385d44dc8f10472bb0e /graphics
parent7122248c72a1dab060b6c5bcb5a9e05ed3d4098c (diff)
downloadscummvm-rg350-71001f23c404630ff83acf98062e66ee632fb4d6.tar.gz
scummvm-rg350-71001f23c404630ff83acf98062e66ee632fb4d6.tar.bz2
scummvm-rg350-71001f23c404630ff83acf98062e66ee632fb4d6.zip
Cleanup.
svn-id: r35657
Diffstat (limited to 'graphics')
-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;
}
/**