Tweak the semantics of dsf_merge() so that the canonical element of
[sgt/puzzles] / drawing.c
index 9dbcea9..26df1ff 100644 (file)
--- a/drawing.c
+++ b/drawing.c
@@ -281,5 +281,10 @@ void print_line_width(drawing *dr, int width)
      * _square root_ of the main puzzle scale. Double the puzzle
      * size, and the line width multiplies by 1.4.
      */
-    dr->api->line_width(dr->handle, sqrt(dr->scale) * width);
+    dr->api->line_width(dr->handle, (float)sqrt(dr->scale) * width);
+}
+
+void print_line_dotted(drawing *dr, int dotted)
+{
+    dr->api->line_dotted(dr->handle, dotted);
 }