From d104e6fe3358124f4517c6fc5512bc966182b949 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 5 Jan 2009 20:12:25 +0000 Subject: Workaround issue in Graphics::Surface code on Haiku svn-id: r35745 --- graphics/surface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'graphics/surface.h') 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(pixels) + y * pitch + x * bytesPerPixel; + return (const byte *)(pixels) + y * pitch + x * bytesPerPixel; } inline void *getBasePtr(int x, int y) { -- cgit v1.2.3