Mercurial > hg > orthanc-stone
comparison 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 |
comparison
equal
deleted
inserted
replaced
692:10910827f235 | 693:9a474e90e832 |
---|---|
81 | 81 |
82 std::vector<Touch> sceneTouches; | 82 std::vector<Touch> sceneTouches; |
83 for (size_t t = 0; t < displayTouches.size(); t++) | 83 for (size_t t = 0; t < displayTouches.size(); t++) |
84 { | 84 { |
85 double sx, sy; | 85 double sx, sy; |
86 view_.MapPixelCenterToScene(sx, sy, (int)displayTouches[t].x, (int)displayTouches[t].y); | 86 |
87 sceneTouches.push_back(Touch(sx, sy)); | 87 view_.MapPixelCenterToScene( |
88 sx, sy, (int)displayTouches[t].x, (int)displayTouches[t].y); | |
89 | |
90 sceneTouches.push_back( | |
91 Touch(static_cast<float>(sx), static_cast<float>(sy))); | |
88 } | 92 } |
89 tracker_->MouseMove(x, y, sceneX, sceneY, displayTouches, sceneTouches); | 93 tracker_->MouseMove(x, y, sceneX, sceneY, displayTouches, sceneTouches); |
90 } | 94 } |
91 }; | 95 }; |
92 | 96 |