mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-28 19:05:51 +01:00
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:
committed by
Carlos R. Mafra
parent
1e490f8233
commit
5ab9b7c6be
@@ -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 ]-------------------------------------------------- */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user