aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2014-10-26 14:57:57 +0100
committerJoel Bodenmann <joel@unormal.org>2014-10-26 14:57:57 +0100
commite5ce8486cde13cf9d2c5e07d0969bf8757d680bd (patch)
treed16968532d87d6d3c9bf2e35262c09cbf47ec5a8 /src/gwin
parenta99174b8c549eaf26e9fd2206d9a38f5bc71956c (diff)
downloaduGFX-e5ce8486cde13cf9d2c5e07d0969bf8757d680bd.tar.gz
uGFX-e5ce8486cde13cf9d2c5e07d0969bf8757d680bd.tar.bz2
uGFX-e5ce8486cde13cf9d2c5e07d0969bf8757d680bd.zip
compiler warning
Diffstat (limited to 'src/gwin')
-rw-r--r--src/gwin/gwin_gwin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gwin/gwin_gwin.c b/src/gwin/gwin_gwin.c
index a4cef125..26e23f32 100644
--- a/src/gwin/gwin_gwin.c
+++ b/src/gwin/gwin_gwin.c
@@ -301,7 +301,7 @@ void gwinBlitArea(GHandle gh, coord_t x, coord_t y, coord_t cx, coord_t cy, coor
#if GDISP_NEED_PIXELREAD
color_t gwinGetPixelColor(GHandle gh, coord_t x, coord_t y) {
- if (!_gwinDrawStart(gh)) return;
+ if (!_gwinDrawStart(gh)) return (color_t)0;
return gdispGGetPixelColor(gh->display, gh->x+x, gh->y+y);
_gwinDrawEnd(gh);
}