+static void fixEndPoint(drawer_t*draw)
+{
+ SWFSHAPEDRAWER*sdraw = (SWFSHAPEDRAWER*)draw->internal;
+ if( sdraw->firstx != sdraw->lastx
+ || sdraw->firsty != sdraw->lasty) {
+ /* fix non-closing shapes */
+ /* TODO: do this only if the shape is filled */
+ FPOINT to;
+ to.x = sdraw->firstx/20.0;
+ to.y = sdraw->firsty/20.0;
+ draw->lineTo(draw, &to);
+ }
+}