X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=c_auto.h;h=279f33531d31ad9cabe29b28797dcb7f796398a0;hb=9ea60b8d585086fa64f7a8cd298ec1cd698ad56d;hp=6beed149dddab24d6fcce8c14ea2de57cfbe2f7b;hpb=90307a9956dbf575e7c48bb00ad14d3bb68b88f3;p=ia32rtools.git diff --git a/c_auto.h b/c_auto.h index 6beed14..279f335 100644 --- a/c_auto.h +++ b/c_auto.h @@ -43,3 +43,9 @@ typedef struct { #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); +}