diff --git a/src/v_video.cpp b/src/v_video.cpp index a3c7d3878..44f634d00 100644 --- a/src/v_video.cpp +++ b/src/v_video.cpp @@ -1768,9 +1768,9 @@ void ScaleWithAspect (int &w, int &h, int Width, int Height) } double y = w/yratio; if (y > h) - w = h*yratio; + w = static_cast(h * yratio); else - h = y; + h = static_cast(y); } void IVideo::DumpAdapters ()