Switch: Pixel-accurate should default to aspect-full if it exceeds screen dimensions

This commit is contained in:
Vicki Pfau 2019-05-27 08:46:26 -07:00
parent 89c37820c6
commit 67c3f386a4
1 changed files with 4 additions and 1 deletions

View File

@ -313,7 +313,10 @@ static void _drawTex(struct mGUIRunner* runner, unsigned width, unsigned height,
} else { } else {
max = floor(1.0 / aspectY); max = floor(1.0 / aspectY);
} }
break; if (max >= 1.0) {
break;
}
// Fall through
case SM_AF: case SM_AF:
if (aspectX > aspectY) { if (aspectX > aspectY) {
max = 1.0 / aspectX; max = 1.0 / aspectX;