aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2013-10-24 02:41:58 +0200
committerJoel Bodenmann <joel@unormal.org>2013-10-24 02:41:58 +0200
commit20a10b15ec4bbccf1c5680b10c2101ae9202f2c7 (patch)
tree5d7500012aca8dd0e302f5a09781e1517a72fbaf
parentaf4c155bd5b0cd11e10f8f99d7cca28929dbc050 (diff)
downloaduGFX-20a10b15ec4bbccf1c5680b10c2101ae9202f2c7.tar.gz
uGFX-20a10b15ec4bbccf1c5680b10c2101ae9202f2c7.tar.bz2
uGFX-20a10b15ec4bbccf1c5680b10c2101ae9202f2c7.zip
fixed small bug
-rw-r--r--src/gwin/list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gwin/list.c b/src/gwin/list.c
index fe903c16..0e93555d 100644
--- a/src/gwin/list.c
+++ b/src/gwin/list.c
@@ -94,7 +94,7 @@ static void gwinListDefaultDraw(GWidgetObject* gw, void* param) {
x = 1;
// the scroll area
- if (gw2obj->cnt > (gw->g.height-2) / iheight || gw->g.flags & GLIST_FLG_SCROLLALWAYS) {
+ if ((gw2obj->cnt > (gw->g.height-2) / iheight) || (gw->g.flags & GLIST_FLG_SCROLLALWAYS)) {
iwidth = gw->g.width - (SCROLLWIDTH+3);
gdispFillArea(gw->g.x+iwidth+2, gw->g.y+1, SCROLLWIDTH, gw->g.height-2, gdispBlendColor(ps->fill, gw->pstyle->background, 128));
gdispDrawLine(gw->g.x+iwidth+1, gw->g.y+1, gw->g.x+iwidth+1, gw->g.y+gw->g.height-2, ps->edge);