diff Framework/Widgets/WorldSceneWidget.cpp @ 693:9a474e90e832

Fixed a bunch of truncation warnings in various parts of the library
author Benjamin Golinvaux <bgo@osimis.io>
date Fri, 17 May 2019 08:49:55 +0200
parents 1201b12eb9f8
children 4f2416d519b4
line wrap: on
line diff
--- a/Framework/Widgets/WorldSceneWidget.cpp	Thu May 16 20:39:30 2019 +0200
+++ b/Framework/Widgets/WorldSceneWidget.cpp	Fri May 17 08:49:55 2019 +0200
@@ -83,8 +83,12 @@
       for (size_t t = 0; t < displayTouches.size(); t++)
       {
         double sx, sy;
-        view_.MapPixelCenterToScene(sx, sy, (int)displayTouches[t].x, (int)displayTouches[t].y);
-        sceneTouches.push_back(Touch(sx, sy));
+        
+        view_.MapPixelCenterToScene(
+          sx, sy, (int)displayTouches[t].x, (int)displayTouches[t].y);
+        
+        sceneTouches.push_back(
+          Touch(static_cast<float>(sx), static_cast<float>(sy)));
       }
       tracker_->MouseMove(x, y, sceneX, sceneY, displayTouches, sceneTouches);
     }