Fixed incorrect render dimension calculations

This commit is contained in:
KallDrexx
2026-01-13 20:23:56 -05:00
parent b960f1d6c5
commit bf79580291
2 changed files with 2 additions and 2 deletions
@@ -185,7 +185,7 @@ public class MonogameApp : Game, IC64Display
{
// texture has a wider aspect ratio than the viewport, texture is width constrained.
width = GraphicsDevice.Viewport.Width;
height = (int)Math.Round(width * textureAspectRatio);
height = (int)Math.Round(width / textureAspectRatio);
startY = (GraphicsDevice.Viewport.Height - height) / 2;
}
else
+1 -1
View File
@@ -190,7 +190,7 @@ public class MonogameApp : Game, INesDisplay, INesInput
{
// texture has a wider aspect ratio than the viewport, texture is width constrained.
width = GraphicsDevice.Viewport.Width;
height = (int)Math.Round(width * textureAspectRatio);
height = (int)Math.Round(width / textureAspectRatio);
startY = (GraphicsDevice.Viewport.Height - height) / 2;
}
else