Fix #14549: changing interface scale could underflow map zoom

This commit is contained in:
Rubidium
2025-09-24 21:13:43 +02:00
committed by dP
parent a9bfdeb5e0
commit cdc42e7906
+6 -2
View File
@@ -12,8 +12,12 @@
#include "core/enum_type.hpp"
/** All zoom levels we know. */
enum class ZoomLevel : uint8_t {
/**
* All zoom levels we know.
*
* The underlying type is signed so subtract-and-Clamp works without need for casting.
*/
enum class ZoomLevel : int8_t {
/* Our possible zoom-levels */
Begin = 0, ///< Begin for iteration.
Min = Begin, ///< Minimum zoom level.