1 #ifndef GRAPHICS_GFXMACROS_H
2 #define GRAPHICS_GFXMACROS_H
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
8 Desc: AmigaOS include file graphics/gfxmacros.h
13 # include <exec/types.h>
16 #ifndef GRAPHICS_RASTPORT_H
17 # include <graphics/rastport.h>
20 /* NOTE: The following symbol must be defined in your source
21 code if one needs the old style macros. Otherwise
22 one will get the new veresions, which are more robust */
24 #ifdef OLD_GRAPHICS_GFXMACROS_H
26 /* Some macros which should be functions... */
27 #define SetDrPt(w,p) \
30 (w)->Flags |= FRST_DOT|0x10; \
31 (w)->linpatcnt = 15; \
34 #define SetAfPt(w,p,n) \
40 #define SetOPen(w,c) \
43 (w)->Flags |= AREAOUTLINE; \
46 #define SetAOlPen(w,p) SetOutlinePen(w,p)
47 #define SetWrMsk(w,m) SetWriteMask(w,m)
48 #define BNDRYOFF(w) {(w)->Flags &= ~AREAOUTLINE;}
51 #define DrawCircle(rp,cx,cy,r) DrawEllipse(rp,cx,cy,r,r);
52 #define AreaCircle(rp,cx,cy,r) AreaEllipse(rp,cx,cy,r,r);
54 #else /* OLD_GRAPHICS_GFXMACROS_H */
56 /* Some macros which should be functions... */
57 #define SetDrPt(w,p) \
60 (w)->Flags |= FRST_DOT|0x10; \
61 (w)->linpatcnt = 15; \
64 #define SetAfPt(w,p,n) \
70 #define SetOPen(w,c) \
73 (w)->Flags |= AREAOUTLINE; \
76 #define SetAOlPen(w,p) SetOutlinePen(w,p)
77 #define SetWrMsk(w,m) SetWriteMask(w,m)
81 (w)->Flags &= ~AREAOUTLINE; \
86 #define DrawCircle(rp,cx,cy,r) DrawEllipse(rp,cx,cy,r,r);
87 #define AreaCircle(rp,cx,cy,r) AreaEllipse(rp,cx,cy,r,r);
89 #endif /* OLD_GRAPHICS_GFXMACROS_H */
91 #endif /* GRAPHICS_GFXMACROS_H */