more stuff for d1ui
[ia32rtools.git] / c_auto.h
index 6beed14..279f335 100644 (file)
--- 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);
+}