summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatarGravatar Miodrag Milanovic <mmicko@gmail.com>2016-02-24 08:02:17 +0100
committerGravatarGravatar Miodrag Milanovic <mmicko@gmail.com>2016-02-24 08:02:17 +0100
commit834936200af681934e8b5a7acacc4a2f654526af (patch)
tree609c0fdf027e2d5e27744ce8534d886b945cb7e3
parent3abcaee63ff285514e8b51a60949c97a7dfa5304 (diff)
fix compile (nw)mame0171
-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);