fix bugs in resize filters support. everyone check your AR correction scenarios, please

This commit is contained in:
zeromus 2014-06-03 03:16:38 +00:00
parent f75142213b
commit 05c08806d1
2 changed files with 4 additions and 3 deletions

View File

@ -309,6 +309,7 @@ namespace BizHawk.Client.EmuHawk
Size chain_outsize = new Size(fvp.BufferWidth * zoom, fvp.BufferHeight * zoom);
//zero 27-may-2014 - this code is now slightly suspicious.. but no proof we need to get rid of it
//zero 02-jun-2014 - now, I suspect it is more important
if (Global.Config.DispObeyAR && Global.Config.DispFixAspectRatio)
chain_outsize = new Size(fvp.VirtualWidth * zoom, fvp.VirtualHeight * zoom);

View File

@ -42,9 +42,9 @@ namespace BizHawk.Client.EmuHawk.Filters
int virtualWidth = virtualSize.Width;
int virtualHeight = virtualSize.Height;
//adjust source dimensions to get scaled proportionally to textureSize vs virtualSize ratio
sourceWidth = (int)(sourceWidth * (float)virtualWidth / textureWidth);
sourceHeight = (int)(sourceHeight * (float)virtualHeight / textureHeight);
//zero 02-jun-2014 - we passed these in, but ignored them. kind of weird..
sourceWidth = (int)virtualWidth;
sourceHeight = (int)virtualHeight;
//this doesnt make sense
if (!maintainAspect)