From 905d5e76b463870fba69d6683c96ac93d6fda623 Mon Sep 17 00:00:00 2001 From: dhewg Date: Mon, 7 Mar 2011 23:41:34 +0100 Subject: [PATCH] ANDROID: Move misplaced assert Leftover from the recently introduced 16bit support --- backends/platform/android/gfx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backends/platform/android/gfx.cpp b/backends/platform/android/gfx.cpp index 6422a28f7b7..605f4eb744b 100644 --- a/backends/platform/android/gfx.cpp +++ b/backends/platform/android/gfx.cpp @@ -577,8 +577,6 @@ void OSystem_Android::setMouseCursor(const byte *buf, uint w, uint h, GLTHREADCHECK; - assert(keycolor < 256); - #ifdef USE_RGB_COLOR if (format && format->bytesPerPixel > 1) { if (_mouse_texture != _mouse_texture_rgb) @@ -600,6 +598,8 @@ void OSystem_Android::setMouseCursor(const byte *buf, uint w, uint h, _mouse_texture->allocBuffer(w, h); if (_mouse_texture == _mouse_texture_palette) { + assert(keycolor < 256); + // Update palette alpha based on keycolor byte *palette = _mouse_texture_palette->palette();