From ee19104dbb51b98a8753414854cc6c5cdee42a55 Mon Sep 17 00:00:00 2001 From: Andrew Hannam Date: Sat, 6 Apr 2013 21:54:19 +1000 Subject: GWIN slider + image support --- src/gwin/gwin.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/gwin/gwin.c') diff --git a/src/gwin/gwin.c b/src/gwin/gwin.c index a2b702e2..58d75694 100644 --- a/src/gwin/gwin.c +++ b/src/gwin/gwin.c @@ -89,6 +89,12 @@ void gwinDestroyWindow(GHandle gh) { geventDetachSource(&((GButtonObject *)gh)->listener, 0); geventDetachSourceListeners((GSourceHandle)gh); break; +#endif +#if GWIN_NEED_SLIDER + case GW_SLIDER: + geventDetachSource(&((GSliderObject *)gh)->listener, 0); + geventDetachSourceListeners((GSourceHandle)gh); + break; #endif default: break; @@ -285,6 +291,15 @@ void gwinBlitArea(GHandle gh, coord_t x, coord_t y, coord_t cx, coord_t cy, coor } #endif +#if GDISP_NEED_IMAGE + gdispImageError gwinImageDraw(GHandle gh, gdispImage *img, coord_t x, coord_t y, coord_t cx, coord_t cy, coord_t sx, coord_t sy) { + #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 */ /** @} */ -- cgit v1.2.3