From 1e490f8233c1d178e4b33c071fc3ecd19a7a9d81 Mon Sep 17 00:00:00 2001 From: Tim Taenny Date: Tue, 18 Jun 2019 21:17:29 +0200 Subject: [PATCH] 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. --- WINGs/WINGs/WUtil.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WINGs/WINGs/WUtil.h b/WINGs/WINGs/WUtil.h index b93d820e..044f2e93 100644 --- a/WINGs/WINGs/WUtil.h +++ b/WINGs/WINGs/WUtil.h @@ -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 ]-------------------------------------------------- */