Codechange: Turn ZoomLevel into enum class.
This commit is contained in:
@@ -129,12 +129,12 @@ Sprite *Blitter_8bppOptimized::Encode(SpriteType sprite_type, const SpriteLoader
|
||||
ZoomLevel zoom_max;
|
||||
|
||||
if (sprite_type == SpriteType::Font) {
|
||||
zoom_min = ZOOM_LVL_MIN;
|
||||
zoom_max = ZOOM_LVL_MIN;
|
||||
zoom_min = ZoomLevel::Min;
|
||||
zoom_max = ZoomLevel::Min;
|
||||
} else {
|
||||
zoom_min = _settings_client.gui.zoom_min;
|
||||
zoom_max = _settings_client.gui.zoom_max;
|
||||
if (zoom_max == zoom_min) zoom_max = ZOOM_LVL_MAX;
|
||||
if (zoom_max == zoom_min) zoom_max = ZoomLevel::Max;
|
||||
}
|
||||
|
||||
for (ZoomLevel i = zoom_min; i <= zoom_max; i++) {
|
||||
|
||||
Reference in New Issue
Block a user