Fix -window -r -nokeepaspect behavior on Windows OSD, nw

This commit is contained in:
therealmogminer@gmail.com 2016-02-23 23:34:19 +01:00
parent eb3600df11
commit 8644419c95

View File

@ -1815,10 +1815,13 @@ osd_dim win_window_info::get_max_bounds(int constrain)
// constrain to fit
if (constrain)
{
maximum = constrain_to_aspect_ratio(maximum, WMSZ_BOTTOMRIGHT);
}
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();
}