diff options
author | 2016-07-31 14:58:11 +0200 | |
---|---|---|
committer | 2016-07-31 14:59:01 +0200 | |
commit | aeadbfe2b180e6bf75687696d97a0a5f359d05f2 (patch) | |
tree | a4abd0a673b2557cb0234af8064b10d6554f3435 /src/emu/render.cpp | |
parent | c703235246ee1631938e1fccca92e5391db490f7 (diff) |
fix linux compile (nw)
Diffstat (limited to 'src/emu/render.cpp')
-rw-r--r-- | src/emu/render.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/render.cpp b/src/emu/render.cpp index 3f84421f69c..1e0e06b760d 100644 --- a/src/emu/render.cpp +++ b/src/emu/render.cpp @@ -1225,8 +1225,8 @@ void render_target::compute_visible_area(INT32 target_width, INT32 target_height // first compute scale factors to fit the screen float xscale = (float)target_width / src_width; float yscale = (float)target_height / src_height; - float maxxscale = std::max(1.0f, m_int_overscan? render_round_nearest(xscale) : floor(xscale)); - float maxyscale = std::max(1.0f, m_int_overscan? render_round_nearest(yscale) : floor(yscale)); + float maxxscale = std::max(double(1.0f), m_int_overscan? render_round_nearest(xscale) : floor(xscale)); + float maxyscale = std::max(double(1.0f), m_int_overscan? render_round_nearest(yscale) : floor(yscale)); // now apply desired scale mode and aspect correction if (m_keepaspect && target_aspect > src_aspect) xscale *= src_aspect / target_aspect * (maxyscale / yscale); |