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.
This commit is contained in:
parent
b17cb215f4
commit
ec257874a7
@ -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…
Reference in New Issue
Block a user