MSVS build: Suppress warning C4244 (possible loss of data)

VC++ is picky about narrowing conversion. Let's ignore it instead of
scattering static_casts.
This commit is contained in:
kichikuou
2021-01-02 13:22:36 +09:00
parent 60a0b43831
commit 1d3715580b
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -35,8 +35,8 @@ void NACT::pump_events()
case SDL_FINGERDOWN:
case SDL_FINGERUP:
case SDL_FINGERMOTION:
mousex = static_cast<int>(e.tfinger.x) * 640;
mousey = static_cast<int>(e.tfinger.y) * ags->screen_height;
mousex = e.tfinger.x * 640;
mousey = e.tfinger.y * ags->screen_height;
fingers = SDL_GetNumTouchFingers(e.tfinger.touchId);
break;