Fixed RECT_TO_GRECT macro
This commit is contained in:
parent
ea2a5fb471
commit
05f13ccf89
|
@ -36,10 +36,10 @@
|
|||
lbuf[7] = (long)sbuf[7];
|
||||
|
||||
#define RECT_TO_GRECT(r,g) \
|
||||
g->g_x = (r->x0 < r->x1) ? r->x0 : r->x1 ; \
|
||||
g->g_y = (r->y0 < r->y1) ? r->y0 : r->y1 ; \
|
||||
g->g_w = (r->x0 < r->x1) ? r->x1 - r->x0 : r->x0 - r->x1 ; \
|
||||
g->g_h = (r->y0 < r->y1) ? r->y1 - r->y0 : r->y0 - r->y1 ;
|
||||
(g)->g_x = (r->x0 < r->x1) ? r->x0 : r->x1 ; \
|
||||
(g)->g_y = (r->y0 < r->y1) ? r->y0 : r->y1 ; \
|
||||
(g)->g_w = (r->x0 < r->x1) ? r->x1 - r->x0 : r->x0 - r->x1 ; \
|
||||
(g)->g_h = (r->y0 < r->y1) ? r->y1 - r->y0 : r->y0 - r->y1 ;
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue