diff options
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/sdl/sdl.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp index ca00349020..5f76d21c9d 100644 --- a/backends/platform/sdl/sdl.cpp +++ b/backends/platform/sdl/sdl.cpp @@ -227,7 +227,8 @@ bool OSystem_SDL::hasFeature(Feature f) { (f == kFeatureFullscreenMode) || (f == kFeatureAspectRatioCorrection) || (f == kFeatureAutoComputeDirtyRects) || - (f == kFeatureCursorHasPalette); + (f == kFeatureCursorHasPalette) || + (f == kFeatureIconifyWindow); } void OSystem_SDL::setFeatureState(Feature f, bool enable) { @@ -244,6 +245,10 @@ void OSystem_SDL::setFeatureState(Feature f, bool enable) { else _modeFlags &= ~DF_WANT_RECT_OPTIM; break; + case kFeatureIconifyWindow: + if (enable) + SDL_WM_IconifyWindow(); + break; default: break; } |