1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-18 20:10:29 +01:00

Adjusted scale factors in ScaleX and ScaleY macros

The scale factors in the macros were based on the assumption that
the default font size was 11. But the actual default font size is
12. This value is specified as DEFAULT_FONT_SIZE in
WINGS/configuration.c.
This commit is contained in:
Tim Taenny
2019-06-18 21:17:29 +02:00
committed by Carlos R. Mafra
parent ba3df2599d
commit 1e490f8233

View File

@@ -201,8 +201,8 @@ typedef void WMNotificationObserverAction(void *observerData,
* fh: the height of the current system font
* Use the WMGetScaleBaseFromSystemFont function to set these values.
*/
#define ScaleX(value) ((int)((double)value / 164.0 * (double)fw + 0.5))
#define ScaleY(value) ((int)((double)value / 14.0 * (double)fh + 0.5))
#define ScaleX(value) ((int)((double)value / 177.0 * (double)fw + 0.5))
#define ScaleY(value) ((int)((double)value / 15.0 * (double)fh + 0.5))
/* ---[ WINGs/memory.c ]-------------------------------------------------- */