diff options
author | Matt Kimber <mattkimber@users.noreply.github.com> | 2021-03-13 09:00:53 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-13 10:00:53 +0100 |
commit | bcb3313e134e0e8cf12366ec9d1340e9986ccc57 (patch) | |
tree | 39141bec1ab454c06deab1f4227f401f864fe970 /src/settings.cpp | |
parent | e708fb38da7a3635c7cc15dd1cc516ea1d2d5871 (diff) | |
download | openttd-bcb3313e134e0e8cf12366ec9d1340e9986ccc57.tar.xz |
Feature: allow setting maximum zoom level at which sprites are drawn (#8604)
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index a69162708..f1db6b4d4 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -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 |