diff options
-rw-r--r-- | src/gui/setup_perfomance.cpp | 2 | ||||
-rw-r--r-- | src/map.cpp | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/setup_perfomance.cpp b/src/gui/setup_perfomance.cpp index eecfe95fc..17dec597e 100644 --- a/src/gui/setup_perfomance.cpp +++ b/src/gui/setup_perfomance.cpp @@ -81,9 +81,11 @@ Setup_Perfomance::Setup_Perfomance(const Widget2 *const widget) : new SetupItemCheckBox(_("Enable opacity cache (Software, can " "use much memory)"), "", "alphaCache", this, "alphaCacheEvent"); +#ifndef USE_SDL2 // TRANSLATORS: settings option new SetupItemCheckBox(_("Enable map reduce (Software)"), "", "enableMapReduce", this, "enableMapReduceEvent"); +#endif // TRANSLATORS: settings option new SetupItemCheckBox(_("Enable compound sprite delay (Software)"), "", diff --git a/src/map.cpp b/src/map.cpp index 7b83e9c7b..011a19319 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -1439,11 +1439,15 @@ void Map::clearIndexedTilesets() void Map::reduce() { +#ifdef USE_SDL2 + return; +#else if (!mFringeLayer || mOpenGL > 0 || !config.getBoolValue("enableMapReduce")) { return; } +#endif int cnt = 0; for (int x = 0; x < mWidth; x ++) |