aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/gwin.c
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2014-07-11 20:41:50 +0200
committerJoel Bodenmann <joel@unormal.org>2014-07-11 20:41:50 +0200
commit1fe4bcde39507769255080b5e98c1c09119902f2 (patch)
tree0db0fae1d5263d2d838a6b6dcfeb7f32f3836dc3 /src/gwin/gwin.c
parent6bf79fdc18a3deecb989bf92a2229e6893d5fc98 (diff)
downloaduGFX-1fe4bcde39507769255080b5e98c1c09119902f2.tar.gz
uGFX-1fe4bcde39507769255080b5e98c1c09119902f2.tar.bz2
uGFX-1fe4bcde39507769255080b5e98c1c09119902f2.zip
Added gwinDrawThickLine() wrapper for corresponding GDISP call
Diffstat (limited to 'src/gwin/gwin.c')
-rw-r--r--src/gwin/gwin.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gwin/gwin.c b/src/gwin/gwin.c
index e1625b13..ab2e2981 100644
--- a/src/gwin/gwin.c
+++ b/src/gwin/gwin.c
@@ -226,6 +226,12 @@ void gwinDrawLine(GHandle gh, coord_t x0, coord_t y0, coord_t x1, coord_t y1) {
_gwinDrawEnd(gh);
}
+void gwinDrawThickLine(GHandle gh, coord_t x0, coord_t y0, coord_t x1, coord_t y1, coord_t width, bool_t round) {
+ if (!_gwinDrawStart(gh)) return;
+ gdispGDrawThickLine(gh->display, gh->x+x0, gh->y+y0, gh->x+x1, gh->y+y1, gh->color, width, round);
+ _gwinDrawEnd(gh);
+}
+
void gwinDrawBox(GHandle gh, coord_t x, coord_t y, coord_t cx, coord_t cy) {
if (!_gwinDrawStart(gh)) return;
gdispGDrawBox(gh->display, gh->x+x, gh->y+y, cx, cy, gh->color);