Win32 GDISP driver - Get rid of compiler warnings created by the new orientation modes.
This commit is contained in:
parent
0892135e23
commit
a3935c653e
1 changed files with 8 additions and 0 deletions
|
@ -528,6 +528,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
|
||||||
#if GDISP_NEED_CONTROL
|
#if GDISP_NEED_CONTROL
|
||||||
switch(g->g.Orientation) {
|
switch(g->g.Orientation) {
|
||||||
case GDISP_ROTATE_0:
|
case GDISP_ROTATE_0:
|
||||||
|
default:
|
||||||
x = priv->x;
|
x = priv->x;
|
||||||
y = priv->y;
|
y = priv->y;
|
||||||
break;
|
break;
|
||||||
|
@ -636,6 +637,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
|
||||||
#if GDISP_NEED_CONTROL
|
#if GDISP_NEED_CONTROL
|
||||||
switch(g->g.Orientation) {
|
switch(g->g.Orientation) {
|
||||||
case GDISP_ROTATE_0:
|
case GDISP_ROTATE_0:
|
||||||
|
default:
|
||||||
color = GetPixel(priv->dcBuffer, priv->x, priv->y);
|
color = GetPixel(priv->dcBuffer, priv->x, priv->y);
|
||||||
break;
|
break;
|
||||||
case GDISP_ROTATE_90:
|
case GDISP_ROTATE_90:
|
||||||
|
@ -683,6 +685,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
|
||||||
#if GDISP_NEED_CONTROL
|
#if GDISP_NEED_CONTROL
|
||||||
switch(g->g.Orientation) {
|
switch(g->g.Orientation) {
|
||||||
case GDISP_ROTATE_0:
|
case GDISP_ROTATE_0:
|
||||||
|
default:
|
||||||
x = g->p.x;
|
x = g->p.x;
|
||||||
y = g->p.y;
|
y = g->p.y;
|
||||||
break;
|
break;
|
||||||
|
@ -743,6 +746,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
|
||||||
#if GDISP_NEED_CONTROL
|
#if GDISP_NEED_CONTROL
|
||||||
switch(g->g.Orientation) {
|
switch(g->g.Orientation) {
|
||||||
case GDISP_ROTATE_0:
|
case GDISP_ROTATE_0:
|
||||||
|
default:
|
||||||
rect.top = g->p.y;
|
rect.top = g->p.y;
|
||||||
rect.bottom = rect.top + g->p.cy;
|
rect.bottom = rect.top + g->p.cy;
|
||||||
rect.left = g->p.x;
|
rect.left = g->p.x;
|
||||||
|
@ -810,6 +814,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
|
||||||
// Copy the bits we need
|
// Copy the bits we need
|
||||||
switch(g->g.Orientation) {
|
switch(g->g.Orientation) {
|
||||||
case GDISP_ROTATE_0:
|
case GDISP_ROTATE_0:
|
||||||
|
default:
|
||||||
return 0; // not handled as it doesn't need to be.
|
return 0; // not handled as it doesn't need to be.
|
||||||
case GDISP_ROTATE_90:
|
case GDISP_ROTATE_90:
|
||||||
for(src = buffer+g->p.x1, j = 0; j < g->p.cy; j++, src += g->p.x2 - g->p.cx) {
|
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
|
#if GDISP_NEED_CONTROL
|
||||||
switch(g->g.Orientation) {
|
switch(g->g.Orientation) {
|
||||||
case GDISP_ROTATE_0:
|
case GDISP_ROTATE_0:
|
||||||
|
default:
|
||||||
bmpInfo.bV4SizeImage = (g->p.cy*g->p.x2) * sizeof(pixel_t);
|
bmpInfo.bV4SizeImage = (g->p.cy*g->p.x2) * sizeof(pixel_t);
|
||||||
bmpInfo.bV4Width = g->p.x2;
|
bmpInfo.bV4Width = g->p.x2;
|
||||||
bmpInfo.bV4Height = -g->p.cy; /* top-down image */
|
bmpInfo.bV4Height = -g->p.cy; /* top-down image */
|
||||||
|
@ -951,6 +957,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
|
||||||
#if GDISP_NEED_CONTROL
|
#if GDISP_NEED_CONTROL
|
||||||
switch(g->g.Orientation) {
|
switch(g->g.Orientation) {
|
||||||
case GDISP_ROTATE_0:
|
case GDISP_ROTATE_0:
|
||||||
|
default:
|
||||||
color = GetPixel(priv->dcBuffer, g->p.x, g->p.y);
|
color = GetPixel(priv->dcBuffer, g->p.x, g->p.y);
|
||||||
break;
|
break;
|
||||||
case GDISP_ROTATE_90:
|
case GDISP_ROTATE_90:
|
||||||
|
@ -983,6 +990,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
|
||||||
#if GDISP_NEED_CONTROL
|
#if GDISP_NEED_CONTROL
|
||||||
switch(g->g.Orientation) {
|
switch(g->g.Orientation) {
|
||||||
case GDISP_ROTATE_0:
|
case GDISP_ROTATE_0:
|
||||||
|
default:
|
||||||
rect.top = g->p.y;
|
rect.top = g->p.y;
|
||||||
rect.bottom = rect.top+g->p.cy;
|
rect.bottom = rect.top+g->p.cy;
|
||||||
rect.left = g->p.x;
|
rect.left = g->p.x;
|
||||||
|
|
Loading…
Add table
Reference in a new issue