~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Patch from Mark Wooding: one-pixel fix to the alignment of the
[sgt/puzzles]
/
drawing.c
diff --git
a/drawing.c
b/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.
*/
* _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);
}
}