From 4f09018b00007fc9acc6ac7b7930aa57ae392d02 Mon Sep 17 00:00:00 2001 From: dhewg Date: Wed, 6 Apr 2011 21:15:15 +0200 Subject: ANDROID: Allow linear texture filtering on the cursor --- backends/platform/android/gfx.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backends/platform/android/gfx.cpp b/backends/platform/android/gfx.cpp index ea0f556364..86232030ff 100644 --- a/backends/platform/android/gfx.cpp +++ b/backends/platform/android/gfx.cpp @@ -59,6 +59,9 @@ bool OSystem_Android::setGraphicsMode(int mode) { if (_overlay_texture) _overlay_texture->setLinearFilter(mode == 1); + if (_mouse_texture) + _mouse_texture->setLinearFilter(mode == 1); + _graphicsMode = mode; return true; @@ -684,6 +687,7 @@ void OSystem_Android::setMouseCursor(const byte *buf, uint w, uint h, assert(!_mouse_texture_rgb); _mouse_texture_rgb = new GLES5551Texture(); + _mouse_texture_rgb->setLinearFilter(_graphicsMode == 1); } _mouse_texture = _mouse_texture_rgb; -- cgit v1.2.3