1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-15 08:22:34 +01:00

Feature: allow setting maximum zoom level at which sprites are drawn (#8604)

This commit is contained in:
Matt Kimber
2021-03-13 09:00:53 +00:00
committed by GitHub
parent e708fb38da
commit bcb3313e13
6 changed files with 39 additions and 1 deletions

View File

@@ -1127,6 +1127,13 @@ static bool ZoomMinMaxChanged(int32 p1)
return true;
}
static bool SpriteZoomMinChanged(int32 p1) {
GfxClearSpriteCache();
/* Force all sprites to redraw at the new chosen zoom level */
MarkWholeScreenDirty();
return true;
}
/**
* Update any possible saveload window and delete any newgrf dialogue as
* its widget parts might change. Reinit all windows as it allows access to the