From 0a26f7084f8df9d0cb65a94a45942796ba5e4d56 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 20 Jun 2012 17:31:10 +0200 Subject: ANDROID: Fix compilation broken with changes to grabOverlay. --- backends/platform/android/gfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends/platform/android') diff --git a/backends/platform/android/gfx.cpp b/backends/platform/android/gfx.cpp index 44046cb1c1..cd0fd88484 100644 --- a/backends/platform/android/gfx.cpp +++ b/backends/platform/android/gfx.cpp @@ -642,7 +642,7 @@ void OSystem_Android::grabOverlay(void *buf, int pitch) { GLTHREADCHECK; const Graphics::Surface *surface = _overlay_texture->surface_const(); - assert(surface->format.bytesPerPixel == sizeof(buf[0])); + assert(surface->format.bytesPerPixel == sizeof(uint16)); byte *dst = (byte *)buf; const byte *src = (const byte *)surface->pixels; -- cgit v1.2.3