Feature: Variable GUI scale.
GUI scale is now variable from 100% to 500%, and no longer restricted to powers-of-2.
This commit is contained in:
@@ -116,27 +116,7 @@ static inline int ScaleSpriteTrad(int value)
|
||||
*/
|
||||
static inline int ScaleGUITrad(int value)
|
||||
{
|
||||
return UnScaleGUI(value * ZOOM_LVL_BASE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Short-hand to apply font zoom level.
|
||||
* @param value Pixel amount at #ZOOM_LVL_BEGIN (full zoom in).
|
||||
* @return Pixel amount at #ZOOM_LVL_FONT (current interface size).
|
||||
*/
|
||||
static inline int UnScaleFont(int value)
|
||||
{
|
||||
return UnScaleByZoom(value, ZOOM_LVL_FONT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Scale traditional pixel dimensions to Font zoom level.
|
||||
* @param value Pixel amount at #ZOOM_LVL_BASE (traditional "normal" interface size).
|
||||
* @return Pixel amount at #ZOOM_LVL_FONT (current interface size).
|
||||
*/
|
||||
static inline int ScaleFontTrad(int value)
|
||||
{
|
||||
return UnScaleFont(value * ZOOM_LVL_BASE);
|
||||
return value * _gui_scale / 100;
|
||||
}
|
||||
|
||||
#endif /* ZOOM_FUNC_H */
|
||||
|
Reference in New Issue
Block a user