From 4c678200122e5f5c2a1de935bd294568c750a761 Mon Sep 17 00:00:00 2001 From: emb <> Date: Mon, 9 Feb 2015 20:19:09 -0600 Subject: [PATCH] Missed else/if for scaling. --- RetroFE/Source/Graphics/ViewInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RetroFE/Source/Graphics/ViewInfo.cpp b/RetroFE/Source/Graphics/ViewInfo.cpp index 9dffaff..282fda5 100644 --- a/RetroFE/Source/Graphics/ViewInfo.cpp +++ b/RetroFE/Source/Graphics/ViewInfo.cpp @@ -92,7 +92,7 @@ float ViewInfo::GetHeight() const { height = MaxHeight; } - if(width > MaxWidth && height <= MaxHeight) + else if(width > MaxWidth && height <= MaxHeight) { height = scaleW * height; } @@ -137,7 +137,7 @@ float ViewInfo::GetWidth() const { width = MaxWidth; } - if(height > MaxHeight && width <= MaxWidth) + else if(height > MaxHeight && width <= MaxWidth) { width = scaleH * width; }