diff options
author | inmarket <andrewh@inmarket.com.au> | 2013-11-16 01:56:34 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2013-11-16 01:56:34 +1000 |
commit | a3935c653e2eef4f9cffc86b7fac695f7e7f8987 (patch) | |
tree | fe330c01d566d846b2729206321e40ec36ac8535 /drivers | |
parent | 0892135e233e3203a3b5bde4f433f673c107fe47 (diff) | |
download | uGFX-a3935c653e2eef4f9cffc86b7fac695f7e7f8987.tar.gz uGFX-a3935c653e2eef4f9cffc86b7fac695f7e7f8987.tar.bz2 uGFX-a3935c653e2eef4f9cffc86b7fac695f7e7f8987.zip |
Win32 GDISP driver - Get rid of compiler warnings created by the new orientation modes.
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/multiple/Win32/gdisp_lld_Win32.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/multiple/Win32/gdisp_lld_Win32.c b/drivers/multiple/Win32/gdisp_lld_Win32.c index 9484c823..50f259b7 100644 --- a/drivers/multiple/Win32/gdisp_lld_Win32.c +++ b/drivers/multiple/Win32/gdisp_lld_Win32.c @@ -528,6 +528,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { #if GDISP_NEED_CONTROL switch(g->g.Orientation) { case GDISP_ROTATE_0: + default: x = priv->x; y = priv->y; break; @@ -636,6 +637,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { #if GDISP_NEED_CONTROL switch(g->g.Orientation) { case GDISP_ROTATE_0: + default: color = GetPixel(priv->dcBuffer, priv->x, priv->y); break; case GDISP_ROTATE_90: @@ -683,6 +685,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { #if GDISP_NEED_CONTROL switch(g->g.Orientation) { case GDISP_ROTATE_0: + default: x = g->p.x; y = g->p.y; break; @@ -743,6 +746,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { #if GDISP_NEED_CONTROL switch(g->g.Orientation) { case GDISP_ROTATE_0: + default: rect.top = g->p.y; rect.bottom = rect.top + g->p.cy; rect.left = g->p.x; @@ -810,6 +814,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { // Copy the bits we need switch(g->g.Orientation) { case GDISP_ROTATE_0: + default: return 0; // not handled as it doesn't need to be. case GDISP_ROTATE_90: for(src = buffer+g->p.x1, j = 0; j < g->p.cy; j++, src += g->p.x2 - g->p.cx) { @@ -869,6 +874,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { #if GDISP_NEED_CONTROL switch(g->g.Orientation) { case GDISP_ROTATE_0: + default: bmpInfo.bV4SizeImage = (g->p.cy*g->p.x2) * sizeof(pixel_t); bmpInfo.bV4Width = g->p.x2; bmpInfo.bV4Height = -g->p.cy; /* top-down image */ @@ -951,6 +957,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { #if GDISP_NEED_CONTROL switch(g->g.Orientation) { case GDISP_ROTATE_0: + default: color = GetPixel(priv->dcBuffer, g->p.x, g->p.y); break; case GDISP_ROTATE_90: @@ -983,6 +990,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { #if GDISP_NEED_CONTROL switch(g->g.Orientation) { case GDISP_ROTATE_0: + default: rect.top = g->p.y; rect.bottom = rect.top+g->p.cy; rect.left = g->p.x; |