diff options
author | dhewg | 2011-03-05 18:21:35 +0100 |
---|---|---|
committer | dhewg | 2011-03-05 18:47:05 +0100 |
commit | 94db3403a3fbe228aa25cdde310e2a8daa5c33eb (patch) | |
tree | 3872223dcf94d33fdd28dce21f3fe6f6a1f300a5 /backends/platform/android/android.cpp | |
parent | 7d506ef853a66cc35816926fe739785c2fd1f2d1 (diff) | |
download | scummvm-rg350-94db3403a3fbe228aa25cdde310e2a8daa5c33eb.tar.gz scummvm-rg350-94db3403a3fbe228aa25cdde310e2a8daa5c33eb.tar.bz2 scummvm-rg350-94db3403a3fbe228aa25cdde310e2a8daa5c33eb.zip |
ANDROID: Add initial 16bit gfx support
Supported pixel formats: 565, 5551, 4444
Missing: 555 (doesn't exist on GLES)
Diffstat (limited to 'backends/platform/android/android.cpp')
-rw-r--r-- | backends/platform/android/android.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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(); } |