mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[WIN32SS][NTGDI] Wrap IntLPtoDP and IntDPtoLP macros by do { .... } while (0)
This commit is contained in:
parent
1292f5f881
commit
cb9a9fa984
1 changed files with 6 additions and 4 deletions
|
@ -4,14 +4,16 @@
|
|||
#define MIN_COORD (INT_MIN / 16)
|
||||
#define MAX_COORD (INT_MAX / 16)
|
||||
|
||||
#define IntLPtoDP(pdc, ppt, count) \
|
||||
#define IntLPtoDP(pdc, ppt, count) do { \
|
||||
DC_vUpdateWorldToDevice(pdc); \
|
||||
DC_vXformWorldToDevice(pdc, count, (PPOINTL)(ppt), (PPOINTL)(ppt));
|
||||
DC_vXformWorldToDevice(pdc, count, (PPOINTL)(ppt), (PPOINTL)(ppt)); \
|
||||
} while (0)
|
||||
#define CoordLPtoDP(pdc, ppt) \
|
||||
DC_vXformWorldToDevice(pdc, 1, (PPOINTL)(ppt), (PPOINTL)(ppt));
|
||||
#define IntDPtoLP(pdc, ppt, count) \
|
||||
#define IntDPtoLP(pdc, ppt, count) do { \
|
||||
DC_vUpdateDeviceToWorld(pdc); \
|
||||
DC_vXformDeviceToWorld(pdc, count, (PPOINTL)(ppt), (PPOINTL)(ppt));
|
||||
DC_vXformDeviceToWorld(pdc, count, (PPOINTL)(ppt), (PPOINTL)(ppt)); \
|
||||
} while (0)
|
||||
#define CoordDPtoLP(pdc, ppt) \
|
||||
DC_vXformDeviceToWorld(pdc, 1, (PPOINTL)(ppt), (PPOINTL)(ppt));
|
||||
|
||||
|
|
Loading…
Reference in a new issue