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.
feature/sdl2_threaded^2
Joel Bodenmann 2021-08-23 15:28:06 +02:00
parent b17cb215f4
commit ec257874a7
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}