fix compile (nw)

This commit is contained in:
Miodrag Milanovic 2016-02-24 08:02:17 +01:00
parent 3abcaee63f
commit 834936200a

View File

@ -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);