summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/osd/windows/window.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/osd/windows/window.cpp b/src/osd/windows/window.cpp
index 7006ec1c7b9..cc5a219ff01 100644
--- a/src/osd/windows/window.cpp
+++ b/src/osd/windows/window.cpp
@@ -1681,6 +1681,8 @@ osd_rect win_window_info::constrain_to_aspect_ratio(const osd_rect &rect, int ad
}
// non-integer scaling - often gives more pleasing results in full screen
+ newwidth = target_width;
+ newheight = target_height;
if (!video_config.fullstretch)
{
// compute maximum integral scaling to fit the window
@@ -1721,11 +1723,6 @@ osd_rect win_window_info::constrain_to_aspect_ratio(const osd_rect &rect, int ad
newwidth *= xscale;
newheight *= yscale;
}
- else
- {
- newwidth = target_width;
- newheight = target_height;
- }
// clamp against the absolute minimum
propwidth = MAX(propwidth, MIN_WINDOW_DIM);