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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user