diff options
author | Torbjörn Andersson | 2006-10-02 04:46:50 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-10-02 04:46:50 +0000 |
commit | d7b786ea41838b6c3fe950fe01c97b97daca711d (patch) | |
tree | 455791fd73d3850c3909c688f63c11256ee64811 /backends/platform/sdl | |
parent | 42cb69827eaab991912022c28be09f2addffe55e (diff) | |
download | scummvm-rg350-d7b786ea41838b6c3fe950fe01c97b97daca711d.tar.gz scummvm-rg350-d7b786ea41838b6c3fe950fe01c97b97daca711d.tar.bz2 scummvm-rg350-d7b786ea41838b6c3fe950fe01c97b97daca711d.zip |
Implemented "iconify window" opcode. This, of course, needs support in the
backend to work, and so far it's only done in the SDL backend. See the new
kFeatureIconifyWindow flag. (This is patch #1568775.)
svn-id: r24060
Diffstat (limited to 'backends/platform/sdl')
-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; } |