summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles/src/drawing.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/puzzles/src/drawing.c')
-rw-r--r--apps/plugins/puzzles/src/drawing.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/puzzles/src/drawing.c b/apps/plugins/puzzles/src/drawing.c
index 7f4a6cf674..a10a7f06d6 100644
--- a/apps/plugins/puzzles/src/drawing.c
+++ b/apps/plugins/puzzles/src/drawing.c
@@ -90,6 +90,8 @@ void draw_line(drawing *dr, int x1, int y1, int x2, int y2, int colour)
90void draw_thick_line(drawing *dr, float thickness, 90void draw_thick_line(drawing *dr, float thickness,
91 float x1, float y1, float x2, float y2, int colour) 91 float x1, float y1, float x2, float y2, int colour)
92{ 92{
93 if (thickness < 1.0)
94 thickness = 1.0;
93 if (dr->api->draw_thick_line) { 95 if (dr->api->draw_thick_line) {
94 dr->api->draw_thick_line(dr->handle, thickness, 96 dr->api->draw_thick_line(dr->handle, thickness,
95 x1, y1, x2, y2, colour); 97 x1, y1, x2, y2, colour);