X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=c_auto.h;h=279f33531d31ad9cabe29b28797dcb7f796398a0;hb=a3668fef370a8bf624cb6f5e65cdfb954b7e4353;hp=b316cacb2e636fb91468592e2ba3d48f96d85478;hpb=b74c31e30301a2e5c03e2947a5017af28bf94e65;p=ia32rtools.git diff --git a/c_auto.h b/c_auto.h index b316cac..279f335 100644 --- a/c_auto.h +++ b/c_auto.h @@ -10,6 +10,13 @@ #define s16 int16_t #define s32 int32_t #define s64 int64_t +typedef struct { + u64 q; + u32 d[2]; + u16 w[4]; + u8 b[8]; +} mmxr; + #define bool int #define _BYTE BYTE #define _WORD WORD @@ -36,3 +43,9 @@ #define PCVOID LPCVOID #define __VALIST __ms_va_list #endif + +static inline BOOL PtInRect_sa(LPCRECT r, int x, int y) +{ + POINT p = { x, y }; + return PtInRect(r, p); +}