trunk/src/osd/windows/window.cpp
| r253694 | r253695 | |
| 1815 | 1815 | |
| 1816 | 1816 | // constrain to fit |
| 1817 | 1817 | if (constrain) |
| 1818 | { |
| 1818 | 1819 | maximum = constrain_to_aspect_ratio(maximum, WMSZ_BOTTOMRIGHT); |
| 1820 | } |
| 1819 | 1821 | else |
| 1820 | 1822 | { |
| 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()); |
| 1822 | 1825 | } |
| 1823 | 1826 | return maximum.dim(); |
| 1824 | 1827 | } |