X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=c_auto.h;h=279f33531d31ad9cabe29b28797dcb7f796398a0;hb=6bda240a5ac56a698fbe25bcf59e3afdf164ff69;hp=6beed149dddab24d6fcce8c14ea2de57cfbe2f7b;hpb=ebc4dc43be160d5774458512cfcd7f918aa89ffb;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); +}