diff options
author | Tectu <joel@unormal.org> | 2013-04-05 04:57:11 -0700 |
---|---|---|
committer | Tectu <joel@unormal.org> | 2013-04-05 04:57:11 -0700 |
commit | 4719e96bebb3c98ad746cecc370da35a44d11cbf (patch) | |
tree | 1c2628cac2869e94ed6fe9246a0701a0784ca702 /src/gwin/gwin.c | |
parent | 55d41fe007e34d67737ca9abd11fb7ce2cc46bbc (diff) | |
parent | ee19104dbb51b98a8753414854cc6c5cdee42a55 (diff) | |
download | uGFX-4719e96bebb3c98ad746cecc370da35a44d11cbf.tar.gz uGFX-4719e96bebb3c98ad746cecc370da35a44d11cbf.tar.bz2 uGFX-4719e96bebb3c98ad746cecc370da35a44d11cbf.zip |
Merge pull request #58 from inmarket/master
GWIN Slider plus other cleanups
Diffstat (limited to 'src/gwin/gwin.c')
-rw-r--r-- | src/gwin/gwin.c | 15 |
1 files changed, 15 insertions, 0 deletions
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 @@ -90,6 +90,12 @@ void gwinDestroyWindow(GHandle gh) { 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 */ /** @} */ |