diff options
author | Vincent Sanders <vince@kyllikki.org> | 2017-05-23 09:45:24 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2017-05-23 09:45:24 +0100 |
commit | ab676ec9173dcfba96f6ffb2ed39f0f38a2ce3d6 (patch) | |
tree | 0aad8e974059760fe04fa06405e2675da0f55fb5 /frontends/atari/misc.h | |
parent | 6f2670ec421749940a10f3b103eff0d96f1063aa (diff) | |
download | netsurf-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.h | 10 |
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) |