Previous 199869 Revisions Next

r45183 Tuesday 23rd February, 2016 at 22:34:36 UTC by Ryan Holtz
Fix -window -r -nokeepaspect behavior on Windows OSD, nw
[src/osd/windows]window.cpp

trunk/src/osd/windows/window.cpp
r253694r253695
18151815
18161816   // constrain to fit
18171817   if (constrain)
1818   {
18181819      maximum = constrain_to_aspect_ratio(maximum, WMSZ_BOTTOMRIGHT);
1820   }
18191821   else
18201822   {
1821      maximum = maximum.resize(maximum.width() - wnd_extra_width(), maximum.height() - wnd_extra_height());
1823      // No - the maxima returned by usable_position_size are in window units, not usable units
1824      //maximum = maximum.resize(maximum.width() - wnd_extra_width(), maximum.height() - wnd_extra_height());
18221825   }
18231826   return maximum.dim();
18241827}


Previous 199869 Revisions Next


© 1997-2024 The MAME Team