diff options
author | Joel Bodenmann <joel@seriouslyembedded.com> | 2015-11-07 15:27:37 +0100 |
---|---|---|
committer | Joel Bodenmann <joel@seriouslyembedded.com> | 2015-11-07 15:27:37 +0100 |
commit | 778b23bdfdb6805e8aa4f9a0cea3a5b99c50cd46 (patch) | |
tree | 9d923074ad61d9242ca9e9f05ff4d9362b5506a6 | |
parent | 5d81aa2487f8a41d64ad49bd04f29850b2371dd0 (diff) | |
download | uGFX-778b23bdfdb6805e8aa4f9a0cea3a5b99c50cd46.tar.gz uGFX-778b23bdfdb6805e8aa4f9a0cea3a5b99c50cd46.tar.bz2 uGFX-778b23bdfdb6805e8aa4f9a0cea3a5b99c50cd46.zip |
Fixing compiler errors for non-GCC compilers
-rw-r--r-- | src/gwin/gwin_list.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/gwin/gwin_list.c b/src/gwin/gwin_list.c index a7ef3b33..1febf019 100644 --- a/src/gwin/gwin_list.c +++ b/src/gwin/gwin_list.c @@ -656,13 +656,6 @@ void gwinListViewItem(GHandle gh, int item) { #endif void gwinListDefaultDraw(GWidgetObject* gw, void* param) { - (void)param; - - #if GDISP_NEED_CONVEX_POLYGON - static const point upArrow[] = { {0, LST_ARROW_SZ}, {LST_ARROW_SZ, LST_ARROW_SZ}, {LST_ARROW_SZ/2, 0} }; - static const point downArrow[] = { {0, 0}, {LST_ARROW_SZ, 0}, {LST_ARROW_SZ/2, LST_ARROW_SZ} }; - #endif - const gfxQueueASyncItem* qi; int i; coord_t x, y, iheight, iwidth; @@ -671,6 +664,12 @@ void gwinListDefaultDraw(GWidgetObject* gw, void* param) { #if GWIN_NEED_LIST_IMAGES coord_t sy; #endif + #if GDISP_NEED_CONVEX_POLYGON + static const point upArrow[] = { {0, LST_ARROW_SZ}, {LST_ARROW_SZ, LST_ARROW_SZ}, {LST_ARROW_SZ/2, 0} }; + static const point downArrow[] = { {0, 0}, {LST_ARROW_SZ, 0}, {LST_ARROW_SZ/2, LST_ARROW_SZ} }; + #endif + + (void)param; // is it a valid handle? if (gw->g.vmt != (gwinVMT *)&listVMT) |