X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fgfxpoly%2Fpoly.h;h=ac1ff376ca0858eab246d11bf96d047b2a99f8d7;hp=68026228cfc4765cd90c0fa95750f02c7ef5b113;hb=ae9783cbbddf61f59a1d43180be3999206e5b28f;hpb=5612cc17da6ef5469874fe6036e8df0ca4ac538b diff --git a/lib/gfxpoly/poly.h b/lib/gfxpoly/poly.h index 6802622..ac1ff37 100644 --- a/lib/gfxpoly/poly.h +++ b/lib/gfxpoly/poly.h @@ -5,7 +5,7 @@ #include "../q.h" //#define DEBUG -//#define CHECKS +#define CHECKS #define SPLAY typedef enum {DIR_UP, DIR_DOWN} segment_dir_t; @@ -43,6 +43,8 @@ typedef struct _windrule fillstyle_t* (*diff)(windstate_t*left, windstate_t*right); } windrule_t; +#define SEGNR(s) ((s)?(s)->nr:-1) + typedef struct _segment { point_t a; point_t b;