aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-07-22 17:05:42 +1000
committerinmarket <andrewh@inmarket.com.au>2013-07-22 17:05:42 +1000
commit25a01150144aa713a92c24535e0ed64755f5ea5c (patch)
tree3d65709e1fa4fc146b6320a564f0dcd59a87b3a4 /src/gwin
parent79612419893f14bb5026e977d2e569519096b4fd (diff)
downloaduGFX-25a01150144aa713a92c24535e0ed64755f5ea5c.tar.gz
uGFX-25a01150144aa713a92c24535e0ed64755f5ea5c.tar.bz2
uGFX-25a01150144aa713a92c24535e0ed64755f5ea5c.zip
This image wrapper really is meant to be there and is used by some demo apps (notepad-2)
Diffstat (limited to 'src/gwin')
-rw-r--r--src/gwin/gwin.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gwin/gwin.c b/src/gwin/gwin.c
index 16f06b0c..f5d78ac6 100644
--- a/src/gwin/gwin.c
+++ b/src/gwin/gwin.c
@@ -489,6 +489,18 @@ void gwinBlitArea(GHandle gh, coord_t x, coord_t y, coord_t cx, coord_t cy, coor
}
#endif
+#if GDISP_NEED_IMAGE
+ gdispImageError gwinDrawImage(GHandle gh, gdispImage *img, coord_t x, coord_t y, coord_t cx, coord_t cy, coord_t sx, coord_t sy) {
+ if (!((gh->flags & GWIN_FLG_VISIBLE)))
+ return GDISP_IMAGE_ERR_OK;
+
+ #if GDISP_NEED_CLIP
+ gdispSetClip(gh->x, gh->y, gh->width, gh->height);
+ #endif
+ return gdispImageDraw(img, gh->x+x, gh->y+y, cx, cy, sx, sy);
+ }
+#endif
+
#endif /* GFX_USE_GWIN */
/** @} */