summaryrefslogtreecommitdiff
path: root/frontends/atari/misc.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2017-05-23 09:45:24 +0100
committerVincent Sanders <vince@kyllikki.org>2017-05-23 09:45:24 +0100
commitab676ec9173dcfba96f6ffb2ed39f0f38a2ce3d6 (patch)
tree0aad8e974059760fe04fa06405e2675da0f55fb5 /frontends/atari/misc.h
parent6f2670ec421749940a10f3b103eff0d96f1063aa (diff)
downloadnetsurf-ab676ec9173dcfba96f6ffb2ed39f0f38a2ce3d6.tar.gz
netsurf-ab676ec9173dcfba96f6ffb2ed39f0f38a2ce3d6.tar.bz2
update atari frontend for corewindow API change
Diffstat (limited to 'frontends/atari/misc.h')
-rw-r--r--frontends/atari/misc.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/frontends/atari/misc.h b/frontends/atari/misc.h
index e581c23b2..05fd1aeef 100644
--- a/frontends/atari/misc.h
+++ b/frontends/atari/misc.h
@@ -31,10 +31,12 @@
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 ;
+ do { \
+ (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 ; \
+ } while(0)