mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
fix compile (nw)
This commit is contained in:
parent
3abcaee63f
commit
834936200a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user