X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fgfxpoly%2Fpoly.h;h=68026228cfc4765cd90c0fa95750f02c7ef5b113;hb=5612cc17da6ef5469874fe6036e8df0ca4ac538b;hp=b9675670e51f880e1fbe47627f480417bf6c1d96;hpb=64cbdc0d10e611af20d4d375ff6319793da8e6f5;p=swftools.git diff --git a/lib/gfxpoly/poly.h b/lib/gfxpoly/poly.h index b967567..6802622 100644 --- a/lib/gfxpoly/poly.h +++ b/lib/gfxpoly/poly.h @@ -5,7 +5,8 @@ #include "../q.h" //#define DEBUG -#define CHECKS +//#define CHECKS +#define SPLAY typedef enum {DIR_UP, DIR_DOWN} segment_dir_t; typedef enum {EVENT_CROSS, EVENT_END, EVENT_CORNER, EVENT_START, EVENT_HORIZONTAL} eventtype_t; @@ -58,6 +59,11 @@ typedef struct _segment { windstate_t wind; int nr; +#ifdef SPLAY + struct _segment*parent; + struct _segment*leftchild; + struct _segment*rightchild; +#endif struct _segment*left; struct _segment*right; char changed;