DirectFB - Home of the pragmatist Roadmap


[directfb-cvs] DirectFB
Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[directfb-cvs] DirectFB



CVSROOT:	/cvs/directfb
Module name:	DirectFB
Changes by:	dok	20041026 15:49:14

Modified files:
	src/misc       : util.c util.h 

Log message:
Added some macros and static inline functions for convenience:

DFB_RECTANGLE_VALS_FROM_REGION(r)   (r)->x1, (r)->y1, (r)->x2-(r)->x1+1, (r)->y2-(r)->y1+1
DFB_RECTANGLE_INIT_FROM_REGION(r)   { DFB_RECTANGLE_VALS_FROM_REGION(r) }

DFB_REGION_VALS_FROM_RECTANGLE(r)   (r)->x, (r)->y, (r)->x+(r)->w-1, (r)->y+(r)->h-1
DFB_REGION_INIT_FROM_RECTANGLE(r)   { DFB_REGION_VALS_FROM_RECTANGLE(r) }

DFB_REGION_INIT_INTERSECTED(r,X1,Y1,X2,Y2)  {
(r)->x1 > (X1) ? (r)->x1 : (X1),  (r)->y1 > (Y1) ? (r)->y1 : (Y1),
(r)->x2 < (X2) ? (r)->x2 : (X2),  (r)->y2 < (Y2) ? (r)->y2 : (Y2)
}

dfb_rectangle_translate(), dfb_region_translate(), dfb_rectangle_resize(),
dfb_region_resize(), dfb_region_intersects(), dfb_region_clip().

Removed obsolete dfb_get_millis() and dfb_get_micros().





Home | Main Index | Thread Index


directfb.org / Development / Old Archives