mirror of
https://github.com/holub/mame
synced 2025-06-30 16:00:01 +03:00
Fix -window -r -nokeepaspect behavior on Windows OSD, nw
This commit is contained in:
parent
eb3600df11
commit
8644419c95
@ -1815,10 +1815,13 @@ osd_dim win_window_info::get_max_bounds(int constrain)
|
|||||||
|
|
||||||
// constrain to fit
|
// constrain to fit
|
||||||
if (constrain)
|
if (constrain)
|
||||||
|
{
|
||||||
maximum = constrain_to_aspect_ratio(maximum, WMSZ_BOTTOMRIGHT);
|
maximum = constrain_to_aspect_ratio(maximum, WMSZ_BOTTOMRIGHT);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
maximum = maximum.resize(maximum.width() - wnd_extra_width(), maximum.height() - wnd_extra_height());
|
// No - the maxima returned by usable_position_size are in window units, not usable units
|
||||||
|
//maximum = maximum.resize(maximum.width() - wnd_extra_width(), maximum.height() - wnd_extra_height());
|
||||||
}
|
}
|
||||||
return maximum.dim();
|
return maximum.dim();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user