Fixed RECT_TO_GRECT macro

This commit is contained in:
Ole Loots 2013-09-16 02:24:06 +02:00
parent ea2a5fb471
commit 05f13ccf89
1 changed files with 4 additions and 4 deletions

View File

@ -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 ;