diff options
| -rw-r--r-- | backends/platform/android/gfx.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/backends/platform/android/gfx.cpp b/backends/platform/android/gfx.cpp index 6422a28f7b..605f4eb744 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(); | 
