Ticket #8575: agos-iconify.diff
File agos-iconify.diff, 2.6 KB (added by , 18 years ago) |
---|
-
engines/agos/agos.h
1076 1076 void o3_b3NotZero(); 1077 1077 1078 1078 // Opcodes, Puzzle Pack only 1079 void o4_ opcode30();1079 void o4_iconifyWindow(); 1080 1080 void o4_restoreOopsPosition(); 1081 1081 void o4_checkTiles(); 1082 1082 void o4_loadMouseImage(); -
engines/agos/items.cpp
434 434 setupAGOSOpcodes(op); 435 435 436 436 op[23] = &AGOSEngine::o3_chance; 437 op[30] = &AGOSEngine::o4_ opcode30;437 op[30] = &AGOSEngine::o4_iconifyWindow; 438 438 op[32] = &AGOSEngine::o4_restoreOopsPosition; 439 439 op[37] = &AGOSEngine::o4_checkTiles; 440 440 op[38] = &AGOSEngine::o4_loadMouseImage; … … 2449 2449 // Puzzle Pack Opcodes 2450 2450 // ----------------------------------------------------------------------- 2451 2451 2452 void AGOSEngine::o4_ opcode30() {2452 void AGOSEngine::o4_iconifyWindow() { 2453 2453 // 30 2454 2454 getNextItemPtr(); 2455 if (_clockStopped != 0) 2456 _gameTime += time(NULL) - _clockStopped; 2457 _clockStopped = 0; 2458 _system->setFeatureState(OSystem::kFeatureIconifyWindow, true); 2455 2459 } 2456 2460 2457 2461 void AGOSEngine::o4_restoreOopsPosition() { -
common/system.h
128 128 * This should only be set if it offers at least 3-4 bits of accuracy, 129 129 * as opposed to a single alpha bit. 130 130 */ 131 kFeatureOverlaySupportsAlpha 131 kFeatureOverlaySupportsAlpha, 132 133 /** 134 * Set to true to iconify the window. 135 */ 136 kFeatureIconifyWindow 132 137 }; 133 138 134 139 /** -
common/system.cpp
83 83 84 84 void OSystem::updateCD() { 85 85 } 86 -
backends/platform/sdl/sdl.cpp
227 227 (f == kFeatureFullscreenMode) || 228 228 (f == kFeatureAspectRatioCorrection) || 229 229 (f == kFeatureAutoComputeDirtyRects) || 230 (f == kFeatureCursorHasPalette); 230 (f == kFeatureCursorHasPalette) || 231 (f == kFeatureIconifyWindow); 231 232 } 232 233 233 234 void OSystem_SDL::setFeatureState(Feature f, bool enable) { … … 244 245 else 245 246 _modeFlags &= ~DF_WANT_RECT_OPTIM; 246 247 break; 248 case kFeatureIconifyWindow: 249 if (enable) 250 SDL_WM_IconifyWindow(); 251 break; 247 252 default: 248 253 break; 249 254 }