mirror of
https://github.com/X11Libre/xserver.git
synced 2026-01-26 14:03:17 +00:00
mi: drop intToCoord() macro
Not used anywhere, no need to keep it around any longer. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
0230c6e074
commit
a72972274e
@ -35,12 +35,10 @@
|
|||||||
#define GetHighWord(x) (((int) (x)) >> 16)
|
#define GetHighWord(x) (((int) (x)) >> 16)
|
||||||
|
|
||||||
#if IMAGE_BYTE_ORDER == MSBFirst
|
#if IMAGE_BYTE_ORDER == MSBFirst
|
||||||
#define intToCoord(i,x,y) (((x) = GetHighWord(i)), ((y) = (int) ((short) (i))))
|
|
||||||
#define coordToInt(x,y) (((x) << 16) | ((y) & 0xffff))
|
#define coordToInt(x,y) (((x) << 16) | ((y) & 0xffff))
|
||||||
#define intToX(i) (GetHighWord(i))
|
#define intToX(i) (GetHighWord(i))
|
||||||
#define intToY(i) ((int) ((short) i))
|
#define intToY(i) ((int) ((short) i))
|
||||||
#else
|
#else
|
||||||
#define intToCoord(i,x,y) (((x) = (int) ((short) (i))), ((y) = GetHighWord(i)))
|
|
||||||
#define coordToInt(x,y) (((y) << 16) | ((x) & 0xffff))
|
#define coordToInt(x,y) (((y) << 16) | ((x) & 0xffff))
|
||||||
#define intToX(i) ((int) ((short) (i)))
|
#define intToX(i) ((int) ((short) (i)))
|
||||||
#define intToY(i) (GetHighWord(i))
|
#define intToY(i) (GetHighWord(i))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user