Commit 958f4c64 authored by Eric Frias's avatar Eric Frias Committed by Alexandre Julliard

More portable POINTSTOPOINT macro.

parent 04e4bbc4
......@@ -1824,10 +1824,7 @@ typedef struct tagMSG
POINT pt;
} MSG, *PMSG, *LPMSG;
#define POINTSTOPOINT(pt, pts) \
{ (pt).x = (LONG)(SHORT)LOWORD(*(LONG*)&pts); \
(pt).y = (LONG)(SHORT)HIWORD(*(LONG*)&pts); }
#define POINTSTOPOINT(pt, pts) { (pt).x = (pts).x; (pt).y = (pts).y; }
#define POINTTOPOINTS(pt) (MAKELONG((short)((pt).x), (short)((pt).y)))
#define MAKELPARAM(low,high) ((LPARAM)MAKELONG(low,high))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment