diff options
| author | Franklin Wei <git@fwei.tk> | 2017-09-30 17:47:13 -0400 |
|---|---|---|
| committer | Franklin Wei <git@fwei.tk> | 2017-09-30 20:06:50 -0400 |
| commit | b9386109e8f0cf346037b72464577fe19bba2d43 (patch) | |
| tree | f0c15f6c80043376ec94d23cb1b681324eb3df3d /apps/plugins/puzzles/src/drawing.c | |
| parent | ea679de8371e4e74fe4e78fb8df8e5df19efffdc (diff) | |
| download | rockbox-b9386109e8f0cf346037b72464577fe19bba2d43.zip rockbox-b9386109e8f0cf346037b72464577fe19bba2d43.tar.gz rockbox-b9386109e8f0cf346037b72464577fe19bba2d43.tar.bz2 rockbox-b9386109e8f0cf346037b72464577fe19bba2d43.tar.xz | |
puzzles: resync with upstream
This brings puzzles to upstream commit 84d3fd2.
Change-Id: I808a197f868032d771fc101a15666c5ec4b9f94b
Diffstat (limited to 'apps/plugins/puzzles/src/drawing.c')
| -rw-r--r-- | apps/plugins/puzzles/src/drawing.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |