mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 19:49:50 +00:00
More portable POINTSTOPOINT macro.
This commit is contained in:
parent
04e4bbc43b
commit
958f4c643e
1 changed files with 1 additions and 4 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue