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:
committed by
Peter Nelson
parent
3c94e81665
commit
9854553e10
@@ -101,17 +101,17 @@ inline ZoomLevel UnScaleZoomGUI(ZoomLevel value)
|
||||
|
||||
/**
|
||||
* Scale traditional pixel dimensions to GUI zoom level, for drawing sprites.
|
||||
* @param value Pixel amount at #ZOOM_LVL_BASE (traditional "normal" interface size).
|
||||
* @param value Pixel amount at #ZOOM_BASE (traditional "normal" interface size).
|
||||
* @return Pixel amount at #ZOOM_LVL_GUI (current interface size).
|
||||
*/
|
||||
inline int ScaleSpriteTrad(int value)
|
||||
{
|
||||
return UnScaleGUI(value * ZOOM_LVL_BASE);
|
||||
return UnScaleGUI(value * ZOOM_BASE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Scale traditional pixel dimensions to GUI zoom level.
|
||||
* @param value Pixel amount at #ZOOM_LVL_BASE (traditional "normal" interface size).
|
||||
* @param value Pixel amount at #ZOOM_BASE (traditional "normal" interface size).
|
||||
* @return Pixel amount at #ZOOM_LVL_GUI (current interface size).
|
||||
*/
|
||||
inline int ScaleGUITrad(int value)
|
||||
|
||||
Reference in New Issue
Block a user