LOOLKit: avoid multiplication at int precision

When the result is already stored as long.

Change-Id: If5ef932c08c212432b5aca2a2300908e521f4ce8
This commit is contained in:
Miklos Vajna 2016-08-10 09:23:16 +02:00
parent a0499e4a65
commit 3f2165b31a

View file

@ -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();