aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@seriouslyembedded.com>2015-11-06 20:59:31 +0100
committerJoel Bodenmann <joel@seriouslyembedded.com>2015-11-06 20:59:31 +0100
commitc2b7e1bd4176795c83c4c6edb5ee94705ef27712 (patch)
treeb1a446ec8267b29ec8711ee880fbff55ac26de9e /src
parent90a65c167314918cfb5c012e598373d9ed41d93c (diff)
downloaduGFX-c2b7e1bd4176795c83c4c6edb5ee94705ef27712.tar.gz
uGFX-c2b7e1bd4176795c83c4c6edb5ee94705ef27712.tar.bz2
uGFX-c2b7e1bd4176795c83c4c6edb5ee94705ef27712.zip
Adding missing GDISP_NEED_CLIP around clipping call in list widget renderer
Diffstat (limited to 'src')
-rw-r--r--src/gwin/gwin_list.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gwin/gwin_list.c b/src/gwin/gwin_list.c
index a2ca8395..a7ef3b33 100644
--- a/src/gwin/gwin_list.c
+++ b/src/gwin/gwin_list.c
@@ -725,7 +725,9 @@ void gwinListDefaultDraw(GWidgetObject* gw, void* param) {
gdispGDrawBox(gw->g.display, gw->g.x, gw->g.y, gw->g.width, gw->g.height, ps->edge);
// Set the clipping region so we do not override the frame.
- gdispGSetClip(gw->g.display, gw->g.x+1, gw->g.y+1, gw->g.width-2, gw->g.height-2);
+ #if GDISP_NEED_CLIP
+ gdispGSetClip(gw->g.display, gw->g.x+1, gw->g.y+1, gw->g.width-2, gw->g.height-2);
+ #endif
// Draw until we run out of room or items
for (y = 1-(gw2obj->top%iheight); y < gw->g.height-2 && qi; qi = gfxQueueASyncNext(qi), y += iheight) {