From: VMware, Inc <> Date: Thu, 17 Dec 2009 21:48:26 +0000 (-0800) Subject: Changes in shared code that don't affect open-vm-tools functionality. X-Git-Tag: 2009.12.16-217847~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfe7676d4f57bb136f09e0386ee7d58f0f7f565f;p=thirdparty%2Fopen-vm-tools.git Changes in shared code that don't affect open-vm-tools functionality. Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/lib/include/region.h b/open-vm-tools/lib/include/region.h index cb686e455..23ad0b2d9 100644 --- a/open-vm-tools/lib/include/region.h +++ b/open-vm-tools/lib/include/region.h @@ -188,6 +188,14 @@ extern RegDataRec miBrokenData; #define REGION_VALIDINDEX(reg, i) (i >= 0 && i < REGION_NUM_RECTS((reg))) +#define BOX_X(ptr) (ptr->x1) +#define BOX_Y(ptr) (ptr->y1) +#define BOX_WIDTH(ptr) (ptr->x2 - ptr->x1) +#define BOX_HEIGHT(ptr) (ptr->y2 - ptr->y1) +#define BOX_XY(ptr) BOX_X(ptr), BOX_Y(ptr) +#define BOX_WH(ptr) BOX_WIDTH(ptr), BOX_HEIGHT(ptr) +#define BOX_XYWH(ptr) BOX_XY(ptr), BOX_WH(ptr) + #define RECT_SETBOX(r, rx, ry, rw, rh) do { \ (r)->x1 = (rx); \ (r)->x2 = (rx) + (rw); \