Renamed the ScaleX/Y macros and their local variables

The names of the macros and the local variables that they use
have been changed to make them less "user-space" like.

    ScaleX -> WMScaleX
    ScaleY -> WMScaleY
    fw     -> wmScaleWidth
    fh     -> wmScaleHeight
This commit is contained in:
Tim Taenny authored and Carlos R. Mafra committed 2019-06-19 18:06:53 +01:00
1 parent 1e490f8233
commit 5ab9b7c6be
4 files changed
+152 -152

No files matched your search

+4 -4
View File
@@ -197,12 +197,12 @@ typedef void WMNotificationObserverAction(void *observerData,
* the panel layouts so that they match the configured size of the system
* font (useful with high DPI screens, where you have to increase this size).
* The macros require two local variables to be set:
* fw: the width of the alphabet in the current system font
* fh: the height of the current system font
* wmScaleWidth: the width of the alphabet in the current system font
* wmScaleHeight: the height of the current system font
* Use the WMGetScaleBaseFromSystemFont function to set these values.
*/
#define ScaleX(value) ((int)((double)value / 177.0 * (double)fw + 0.5))
#define ScaleY(value) ((int)((double)value / 15.0 * (double)fh + 0.5))
#define WMScaleX(value) ((int)((double)value / 177.0 * (double)wmScaleWidth + 0.5))
#define WMScaleY(value) ((int)((double)value / 15.0 * (double)wmScaleHeight + 0.5))
/* ---[ WINGs/memory.c ]-------------------------------------------------- */