]> Some of my projects - openlase.git/commitdiff
Support start dwell for OL_POINTS objects
authorHector Martin <hector@marcansoft.com>
Mon, 10 Jan 2011 02:47:05 +0000 (03:47 +0100)
committerHector Martin <hector@marcansoft.com>
Mon, 10 Jan 2011 02:47:05 +0000 (03:47 +0100)
libol/libol.c

index 696bfb7a27b4dec9242eb43d773823ac3b3de721..e461da5bad9c26bb32475cd292e34d6254430055 100644 (file)
@@ -516,7 +516,12 @@ static void bezier_to(float x, float y, uint32_t color)
 
 static void point_to(float x, float y, uint32_t color)
 {
+       int i;
        addpoint(x,y,color);
+       if (dstate.points == 0)
+               for (i=0; i<params.start_dwell; i++)
+                       addpoint(x,y,color);
+
        dstate.points++;
        return;
 }