View Single Post
  #3 (permalink)  
Old 28th July 2017
bst2 bst2 is offline
Administrator
BS.Player Newbie
 
Join Date: Jan 2009
Posts: 3
Rep Power: 10
bst2 has disabled reputation
Default

It's 32 bit integer, HIWORD is x and LOWORD is y position of top left corner.

For ex.

Code:
position = 43254468  // 0x029402C4

x = 0x0294 -> 660
y = 0x02C4 -> 708

x = position >> 16;
y = position & 0xFFFF;

reverse:
position = (x << 16) | y;
Reply With Quote
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19