diff options
author | dhewg | 2011-03-13 23:14:42 +0100 |
---|---|---|
committer | dhewg | 2011-03-13 23:30:17 +0100 |
commit | df9167c6b33fbfcb259480c14b08be5c32de6fd3 (patch) | |
tree | acfbb04adf7af3c06e565eb3672edab506217ad3 /backends/platform/android/gfx.cpp | |
parent | c63c2a9e59ab9f9013a5e0e1f6c443352ce4f20f (diff) | |
download | scummvm-rg350-df9167c6b33fbfcb259480c14b08be5c32de6fd3.tar.gz scummvm-rg350-df9167c6b33fbfcb259480c14b08be5c32de6fd3.tar.bz2 scummvm-rg350-df9167c6b33fbfcb259480c14b08be5c32de6fd3.zip |
ANDROID: Add graphics mode for linear filtering
Diffstat (limited to 'backends/platform/android/gfx.cpp')
-rw-r--r-- | backends/platform/android/gfx.cpp | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/backends/platform/android/gfx.cpp b/backends/platform/android/gfx.cpp index 332442345c..06387e09fe 100644 --- a/backends/platform/android/gfx.cpp +++ b/backends/platform/android/gfx.cpp @@ -38,7 +38,8 @@ static inline GLfixed xdiv(int numerator, int denominator) { const OSystem::GraphicsMode *OSystem_Android::getSupportedGraphicsModes() const { static const OSystem::GraphicsMode s_supportedGraphicsModes[] = { - { "default", "Default", 1 }, + { "default", "Default", 0 }, + { "filter", "Linear filtering", 1 }, { 0, 0, 0 }, }; @@ -46,23 +47,25 @@ const OSystem::GraphicsMode *OSystem_Android::getSupportedGraphicsModes() const } int OSystem_Android::getDefaultGraphicsMode() const { - return 1; -} - -bool OSystem_Android::setGraphicsMode(const char *mode) { - ENTER("%s", mode); - - return true; + return 0; } bool OSystem_Android::setGraphicsMode(int mode) { ENTER("%d", mode); + if (_game_texture) + _game_texture->setLinearFilter(mode == 1); + + if (_overlay_texture) + _overlay_texture->setLinearFilter(mode == 1); + + _graphicsMode = mode; + return true; } int OSystem_Android::getGraphicsMode() const { - return 1; + return _graphicsMode; } #ifdef USE_RGB_COLOR |