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 authored and Carlos R. Mafra committed 2019-06-19 18:06:53 +01:00
1 parent ba3df2599d
commit 1e490f8233
1 file changed
+2 -2
+2 -2
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 ]-------------------------------------------------- */