diff options
author | Thierry Crozat | 2016-10-21 22:16:27 +0100 |
---|---|---|
committer | Thierry Crozat | 2016-10-21 22:27:26 +0100 |
commit | 2882424306bfb8a85a211002394611d3a6b4ac9b (patch) | |
tree | 45b08ea7b573982bd1d62a6c6dc4943b9a137b6d /backends/platform/ios7/ios7_osys_main.cpp | |
parent | 8b1bb08a6eaddff3f0d399a87636810a4a9c8609 (diff) | |
download | scummvm-rg350-2882424306bfb8a85a211002394611d3a6b4ac9b.tar.gz scummvm-rg350-2882424306bfb8a85a211002394611d3a6b4ac9b.tar.bz2 scummvm-rg350-2882424306bfb8a85a211002394611d3a6b4ac9b.zip |
IOS: Add support for filtering feature
Diffstat (limited to 'backends/platform/ios7/ios7_osys_main.cpp')
-rw-r--r-- | backends/platform/ios7/ios7_osys_main.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/backends/platform/ios7/ios7_osys_main.cpp b/backends/platform/ios7/ios7_osys_main.cpp index 25d9cbed15..3a627478f9 100644 --- a/backends/platform/ios7/ios7_osys_main.cpp +++ b/backends/platform/ios7/ios7_osys_main.cpp @@ -52,8 +52,7 @@ const OSystem::GraphicsMode OSystem_iOS7::s_supportedGraphicsModes[] = { - { "none", "No filtering", kGraphicsModeNone }, - { "linear", "Linear filtering", kGraphicsModeLinear }, + { "none", "Normal", kGraphicsModeNone }, #ifdef ENABLE_IOS7_SCALERS #ifdef USE_SCALERS @@ -171,6 +170,7 @@ void OSystem_iOS7::initBackend() { bool OSystem_iOS7::hasFeature(Feature f) { switch (f) { case kFeatureCursorPalette: + case kFeatureFilteringMode: return true; default: @@ -187,6 +187,9 @@ void OSystem_iOS7::setFeatureState(Feature f, bool enable) { _mouseCursorPaletteEnabled = enable; } break; + case kFeatureFilteringMode: + _videoContext->filtering = enable; + break; case kFeatureAspectRatioCorrection: _videoContext->asprectRatioCorrection = enable; break; @@ -200,6 +203,8 @@ bool OSystem_iOS7::getFeatureState(Feature f) { switch (f) { case kFeatureCursorPalette: return _mouseCursorPaletteEnabled; + case kFeatureFilteringMode: + return _videoContext->filtering; case kFeatureAspectRatioCorrection: return _videoContext->asprectRatioCorrection; |