changeset 1363:3af0057f377d

Adjust view64 display aspect calculations.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 22 Sep 2017 16:40:43 +0300
parents 7bc67ba68904
children 0d61895e1763
files tools/view64.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tools/view64.c	Fri Sep 22 16:25:25 2017 +0300
+++ b/tools/view64.c	Fri Sep 22 16:40:43 2017 +0300
@@ -297,7 +297,7 @@
         if (needRedraw)
         {
             float aspect = (float) bmap.height / (float) bmap.width;
-            int sheight = optScrWidth * aspect * C64_SCR_PAR_XY;
+            int sheight = optScrHeight / aspect;
             int ypos = (optScrHeight - sheight) / 2;
 
             if (SDL_MUSTLOCK(screen) != 0 && SDL_LockSurface(screen) != 0)