Browse Source

GDISP: Explicitly handle gOrientation values where applicaple

This addresses a compiler bug in some versions of GCC which warn about unhandled enum values although there is a default handler.
master
Joel Bodenmann 2 years ago
parent
commit
ec257874a7
  1. 4
      src/gdisp/gdisp.c

4
src/gdisp/gdisp.c

@ -2885,6 +2885,10 @@ void gdispGBlitArea(GDisplay *g, gCoord x, gCoord y, gCoord cx, gCoord cy, gCoor
case gOrientationPortrait:
g->p.ptr = g->g.Width >= g->g.Height ? (void *)gOrientation90 : (void *)gOrientation0;
break;
case gOrientation0:
case gOrientation90:
case gOrientation180:
case gOrientation270:
default:
break;
}

Loading…
Cancel
Save