summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-07-31 15:31:22 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-07-31 15:31:22 +0200
commit184f7e5605c9e856648fc072ec2af54d2efb74d0 (patch)
tree215e37155683c91f9a101236176ab0208869f10c /src
parent2a87e99b21f090349023bfaca6cd2c53bc3b4429 (diff)
win compile fix due to previous changes (nw)
Diffstat (limited to 'src')
-rw-r--r--src/emu/render.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/render.cpp b/src/emu/render.cpp
index 1e0e06b760d..c328238f299 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(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));
+ float maxxscale = std::max(float(1.0f), float(m_int_overscan? render_round_nearest(xscale) : floor(xscale)));
+ float maxyscale = std::max(float(1.0f), float(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);