(svn r5626) CodeChange : Remove the global _make_screenshot and implement a more flexible mechanism

Simplification of the handling of the main_gui menus,
Removal of repetitions and Hiding the internals of screenshots.
Thanks to glx, Rubidium and Truelight for pointers
This commit is contained in:
belugas
2006-07-28 21:51:00 +00:00
parent e1654fa017
commit ecc89d5965
6 changed files with 68 additions and 35 deletions

View File

@@ -936,19 +936,7 @@ void GameLoop(void)
if (_dirkeys) HandleKeyScrolling();
// make a screenshot?
if (_make_screenshot != 0) {
switch (_make_screenshot) {
case 1: // make small screenshot
UndrawMouseCursor();
ShowScreenshotResult(MakeScreenshot());
break;
case 2: // make large screenshot
ShowScreenshotResult(MakeWorldScreenshot(-(int)MapMaxX() * TILE_PIXELS, 0, (MapMaxX() + MapMaxY()) * TILE_PIXELS, (MapMaxX() + MapMaxY()) * TILE_PIXELS >> 1, 0));
break;
}
_make_screenshot = 0;
}
if (IsScreenshotRequested()) ShowScreenshotResult(MakeScreenshot());
// switch game mode?
if (_switch_mode != SM_NONE) {