LOOLKit: avoid multiplication at int precision
When the result is already stored as long. Change-Id: If5ef932c08c212432b5aca2a2300908e521f4ce8
This commit is contained in:
parent
a0499e4a65
commit
3f2165b31a
1 changed files with 2 additions and 2 deletions
|
@ -673,8 +673,8 @@ public:
|
|||
size_t tileIndex = 0;
|
||||
for (Util::Rectangle& tileRect : tileRecs)
|
||||
{
|
||||
const int positionX = (tileRect.getLeft() - renderArea.getLeft()) / tileCombined.getTileWidth();
|
||||
const int positionY = (tileRect.getTop() - renderArea.getTop()) / tileCombined.getTileHeight();
|
||||
const size_t positionX = (tileRect.getLeft() - renderArea.getLeft()) / tileCombined.getTileWidth();
|
||||
const size_t positionY = (tileRect.getTop() - renderArea.getTop()) / tileCombined.getTileHeight();
|
||||
|
||||
const auto oldSize = output.size();
|
||||
const auto pixelWidth = tileCombined.getWidth();
|
||||
|
|
Loading…
Reference in a new issue