When image is below 1x scale, don't use integer scaling.

This commit is contained in:
Brandon Wright 2018-06-13 17:25:08 -05:00
parent 35389f5595
commit f10e8d1114
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ RECT CalculateDisplayRect(unsigned int sourceWidth,unsigned int sourceHeight,
if(GUI.Stretch) { if(GUI.Stretch) {
if(GUI.AspectRatio) { if(GUI.AspectRatio) {
if (GUI.IntegerScaling && sourceHeight > 0) { if (GUI.IntegerScaling && sourceHeight > 0 && sourceHeight <= displayHeight && (int)(sourceHeight * snesAspect) <= displayWidth) {
int h; int h;
for (h = sourceHeight * 2; h <= displayHeight && (int)(h * snesAspect) <= displayWidth; h += sourceHeight) {} for (h = sourceHeight * 2; h <= displayHeight && (int)(h * snesAspect) <= displayWidth; h += sourceHeight) {}
h -= sourceHeight; h -= sourceHeight;