mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
Fixed recently introduced compilation warnings
src\v_video.cpp(1771): warning C4244: '=': conversion from 'double' to 'int', possible loss of data src\v_video.cpp(1773): warning C4244: '=': conversion from 'double' to 'int', possible loss of data
This commit is contained in:
parent
625fc73f28
commit
a92f889e44
1 changed files with 2 additions and 2 deletions
|
@ -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<int>(h * yratio);
|
||||
else
|
||||
h = y;
|
||||
h = static_cast<int>(y);
|
||||
}
|
||||
|
||||
void IVideo::DumpAdapters ()
|
||||
|
|
Loading…
Reference in a new issue