CVSROOT:        /cvs/directfb
Module name:    DirectFB
Changes by:     dok     20041027 17:46:51

Modified files:
        src/misc       : util.h 

Log message:
More convenience:

DFB_RECTANGLE_ASSERT(r) and DFB_REGION_ASSERT(r) fail if 'r' is NULL
or if the coordinates are illegal, e.g. negative width or x1 > x2 etc.

DFB_RECTANGLE_ASSERT_IF(r) and DFB_REGION_ASSERT_IF(r) don't fail
if 'r' is NULL, but fail if 'r' is set with illegal coordinates.

DFB_REGION_VALS_TRANSLATED(r,x,y)  (r)->x1 + x, (r)->y1 + y, (r)->x2 + x, (r)->y2 + y
DFB_REGION_INIT_TRANSLATED(r,x,y)  { DFB_REGION_VALS_TRANSLATED(r,x,y) }

DFB_REGION_VALS_INTERSECTED(r,X1,Y1,X2,Y2) in addition to
the existing DFB_REGION_INIT_INTERSECTED(r,X1,Y1,X2,Y2).



Reply via email to