trunk/src/osd/windows/window.cpp
| r253708 | r253709 | |
| 1681 | 1681 | } |
| 1682 | 1682 | |
| 1683 | 1683 | // non-integer scaling - often gives more pleasing results in full screen |
| 1684 | newwidth = target_width; |
| 1685 | newheight = target_height; |
| 1684 | 1686 | if (!video_config.fullstretch) |
| 1685 | 1687 | { |
| 1686 | 1688 | // compute maximum integral scaling to fit the window |
| r253708 | r253709 | |
| 1721 | 1723 | newwidth *= xscale; |
| 1722 | 1724 | newheight *= yscale; |
| 1723 | 1725 | } |
| 1724 | | else |
| 1725 | | { |
| 1726 | | newwidth = target_width; |
| 1727 | | newheight = target_height; |
| 1728 | | } |
| 1729 | 1726 | |
| 1730 | 1727 | // clamp against the absolute minimum |
| 1731 | 1728 | propwidth = MAX(propwidth, MIN_WINDOW_DIM); |