ANDROID: Use a faked paletted texture for CLUT cursors

Same change as for the game screen, reduces CPU usage a little
This commit is contained in:
dhewg 2011-04-05 15:07:07 +02:00
parent 1c8fc05388
commit ea253ff26d
4 changed files with 16 additions and 2 deletions

View file

@ -359,7 +359,7 @@ void OSystem_Android::initBackend() {
_game_texture = new GLESFakePalette565Texture();
_overlay_texture = new GLES4444Texture();
_mouse_texture_palette = new GLESPalette5551Texture();
_mouse_texture_palette = new GLESFakePalette5551Texture();
_mouse_texture = _mouse_texture_palette;
initOverlay();

View file

@ -129,7 +129,7 @@ private:
// Mouse layer
GLESBaseTexture *_mouse_texture;
GLESPaletteTexture *_mouse_texture_palette;
GLESBaseTexture *_mouse_texture_palette;
GLES5551Texture *_mouse_texture_rgb;
Common::Point _mouse_hotspot;
uint32 _mouse_keycolor;

View file

@ -584,5 +584,13 @@ GLESFakePalette565Texture::GLESFakePalette565Texture() :
GLESFakePalette565Texture::~GLESFakePalette565Texture() {
}
GLESFakePalette5551Texture::GLESFakePalette5551Texture() :
GLESFakePaletteTexture(GL_RGBA, GL_UNSIGNED_SHORT_5_5_5_1,
GLES5551Texture::pixelFormat()) {
}
GLESFakePalette5551Texture::~GLESFakePalette5551Texture() {
}
#endif

View file

@ -330,6 +330,12 @@ public:
virtual ~GLESFakePalette565Texture();
};
class GLESFakePalette5551Texture : public GLESFakePaletteTexture {
public:
GLESFakePalette5551Texture();
virtual ~GLESFakePalette5551Texture();
};
#endif
#endif