mirror of
https://github.com/roytam1/basilisk55.git
synced 2026-05-26 13:29:16 +00:00
import from UXP: [gfx] Explicitly cast calculation to int32. (602a2e35)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user