From b9386109e8f0cf346037b72464577fe19bba2d43 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sat, 30 Sep 2017 17:47:13 -0400 Subject: puzzles: resync with upstream This brings puzzles to upstream commit 84d3fd2. Change-Id: I808a197f868032d771fc101a15666c5ec4b9f94b --- apps/plugins/puzzles/src/drawing.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/plugins/puzzles/src/drawing.c') diff --git a/apps/plugins/puzzles/src/drawing.c b/apps/plugins/puzzles/src/drawing.c index 7f4a6cf..a10a7f0 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) void draw_thick_line(drawing *dr, float thickness, float x1, float y1, float x2, float y2, int colour) { + if (thickness < 1.0) + thickness = 1.0; if (dr->api->draw_thick_line) { dr->api->draw_thick_line(dr->handle, thickness, x1, y1, x2, y2, colour); -- cgit v1.1