diff options
author | Antonio Giner <estudio@antonioginer.com> | 2016-03-20 21:57:38 +0100 |
---|---|---|
committer | Antonio Giner <estudio@antonioginer.com> | 2016-03-20 21:57:38 +0100 |
commit | bb5188522985dc71d7e744d02abf28d1ae9e270a (patch) | |
tree | 3f8efe2d89b88defac7897385b1019f1bc6830e1 /src/osd/windows/window.cpp | |
parent | 57199a7dff8d53f88951a08dc0f8fbff9d11ad8d (diff) |
Move integer scaling implementation to render_target::compute_visible_area
- Add core option -unevenstretch
- Add core option -unevenstretchx
Diffstat (limited to 'src/osd/windows/window.cpp')
-rw-r--r-- | src/osd/windows/window.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osd/windows/window.cpp b/src/osd/windows/window.cpp index e0089d98585..28db75a7fe1 100644 --- a/src/osd/windows/window.cpp +++ b/src/osd/windows/window.cpp @@ -1663,7 +1663,7 @@ osd_rect win_window_info::constrain_to_aspect_ratio(const osd_rect &rect, int ad assert(GetCurrentThreadId() == window_threadid); // do not constrain aspect ratio for integer scaled views - if (m_target->scale_type() != RENDER_SCALE_FRACTIONAL) + if (m_target->scale_mode() != SCALE_FRACTIONAL) return rect; // get the pixel aspect ratio for the target monitor @@ -1787,7 +1787,7 @@ osd_dim win_window_info::get_min_bounds(int constrain) minheight += wnd_extra_height(); // if we want it constrained, figure out which one is larger - if (constrain && m_target->scale_type() == RENDER_SCALE_FRACTIONAL) + if (constrain && m_target->scale_mode() == SCALE_FRACTIONAL) { // first constrain with no height limit osd_rect test1(0,0,minwidth,10000); @@ -1847,7 +1847,7 @@ osd_dim win_window_info::get_max_bounds(int constrain) maximum = maximum.resize(tempw, temph); // constrain to fit - if (constrain && m_target->scale_type() == RENDER_SCALE_FRACTIONAL) + if (constrain && m_target->scale_mode() == SCALE_FRACTIONAL) maximum = constrain_to_aspect_ratio(maximum, WMSZ_BOTTOMRIGHT); return maximum.dim(); |