1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-26 13:58:49 +00:00

[gfx] Explicitly cast calculation to int32.

This commit is contained in:
Moonchild
2026-04-25 15:25:11 +02:00
committed by roytam1
parent 99c241d56f
commit 602a2e35d8
+2 -2
View File
@@ -2658,9 +2658,9 @@ FilterNodeDisplacementMapSoftware::Render(const IntRect& aRect)
uint32_t mapIndex = y * mapStride + 4 * x;
uint32_t targIndex = y * targetStride + 4 * x;
int32_t sourceX = x +
scaleOver255 * mapData[mapIndex + xChannel] + scaleAdjustment;
int32_t(scaleOver255 * mapData[mapIndex + xChannel] + scaleAdjustment);
int32_t sourceY = y +
scaleOver255 * mapData[mapIndex + yChannel] + scaleAdjustment;
int32_t(scaleOver255 * mapData[mapIndex + yChannel] + scaleAdjustment);
*(uint32_t*)(targetData + targIndex) =
ColorAtPoint(sourceData, sourceStride, sourceX, sourceY);
}