mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-21 21:49:10 +00:00
Codechange: ZOOM_LVL_SHIFT/BASE are not actually ZOOM_LVLs.
Rename to ZOOM_BASE_SHIFT and ZOOM_BASE respectively, and derive from ZOOM_LVL instead of numeric value.
This commit is contained in:
@@ -29,7 +29,7 @@ WidgetDimensions WidgetDimensions::scaled = {};
|
||||
|
||||
/**
|
||||
* Scale a RectPadding to GUI zoom level.
|
||||
* @param r RectPadding at ZOOM_LVL_BASE (traditional "normal" interface size).
|
||||
* @param r RectPadding at ZOOM_BASE (traditional "normal" interface size).
|
||||
* @return RectPadding at #ZOOM_LVL_GUI (current interface size).
|
||||
*/
|
||||
static inline RectPadding ScaleGUITrad(const RectPadding &r)
|
||||
@@ -39,7 +39,7 @@ static inline RectPadding ScaleGUITrad(const RectPadding &r)
|
||||
|
||||
/**
|
||||
* Scale a Dimension to GUI zoom level.
|
||||
* @param d Dimension at ZOOM_LVL_BASE (traditional "normal" interface size).
|
||||
* @param d Dimension at ZOOM_BASE (traditional "normal" interface size).
|
||||
* @return Dimension at #ZOOM_LVL_GUI (current interface size).
|
||||
*/
|
||||
static inline Dimension ScaleGUITrad(const Dimension &dim)
|
||||
|
Reference in New Issue
Block a user