From 94db3403a3fbe228aa25cdde310e2a8daa5c33eb Mon Sep 17 00:00:00 2001 From: dhewg Date: Sat, 5 Mar 2011 18:21:35 +0100 Subject: ANDROID: Add initial 16bit gfx support Supported pixel formats: 565, 5551, 4444 Missing: 555 (doesn't exist on GLES) --- backends/platform/android/android.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'backends/platform/android/android.cpp') diff --git a/backends/platform/android/android.cpp b/backends/platform/android/android.cpp index 43b618d37b..0cfe7c9a22 100644 --- a/backends/platform/android/android.cpp +++ b/backends/platform/android/android.cpp @@ -110,6 +110,8 @@ OSystem_Android::OSystem_Android(int audio_sample_rate, int audio_buffer_size) : _game_texture(0), _overlay_texture(0), _mouse_texture(0), + _mouse_texture_palette(0), + _mouse_texture_rgb(0), _use_mouse_palette(false), _show_mouse(false), _show_overlay(false), @@ -328,7 +330,8 @@ void OSystem_Android::initBackend() { _game_texture = new GLESPalette888Texture(); _overlay_texture = new GLES4444Texture(); - _mouse_texture = new GLESPalette8888Texture(); + _mouse_texture_palette = new GLESPalette8888Texture(); + _mouse_texture = _mouse_texture_palette; // renice this thread to boost the audio thread if (setpriority(PRIO_PROCESS, 0, 19) < 0) @@ -591,7 +594,8 @@ void OSystem_Android::quit() { delete _game_texture; delete _overlay_texture; - delete _mouse_texture; + delete _mouse_texture_palette; + delete _mouse_texture_rgb; deinitSurface(); } -- cgit v1.2.3