From 834936200af681934e8b5a7acacc4a2f654526af Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Wed, 24 Feb 2016 08:02:17 +0100 Subject: fix compile (nw) --- src/osd/windows/window.cpp | 7 ++----- 1 file 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); -- cgit v1.2.3