mirror of https://github.com/snes9xgit/snes9x.git
When image is below 1x scale, don't use integer scaling.
This commit is contained in:
parent
35389f5595
commit
f10e8d1114
|
@ -304,7 +304,7 @@ RECT CalculateDisplayRect(unsigned int sourceWidth,unsigned int sourceHeight,
|
|||
if(GUI.Stretch) {
|
||||
if(GUI.AspectRatio) {
|
||||
|
||||
if (GUI.IntegerScaling && sourceHeight > 0) {
|
||||
if (GUI.IntegerScaling && sourceHeight > 0 && sourceHeight <= displayHeight && (int)(sourceHeight * snesAspect) <= displayWidth) {
|
||||
int h;
|
||||
for (h = sourceHeight * 2; h <= displayHeight && (int)(h * snesAspect) <= displayWidth; h += sourceHeight) {}
|
||||
h -= sourceHeight;
|
||||
|
|
Loading…
Reference in New Issue