X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/60aa1c7413ef8ba2c4889628170f00bf180039f0..0b119fd7d6d58c9cb8210477fa8c4573744c69d8:/drawing.c diff --git a/drawing.c b/drawing.c index 9dbcea9..26df1ff 100644 --- 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); }