Commit f0e9cc8d authored by Lee Salzman's avatar Lee Salzman Committed by Pier Angelo Vendrame
Browse files

Bug 2026297. a=diannaS DONTBUILD

parent f926eaf8
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2678,9 +2678,11 @@ already_AddRefed<DataSourceSurface> FilterNodeDisplacementMapSoftware::Render(
      uint32_t mapIndex = y * mapStride + 4 * x;
      uint32_t targIndex = y * targetStride + 4 * x;
      int32_t sourceX =
          x + scaleOver255 * mapData[mapIndex + xChannel] + scaleAdjustment;
          x + int32_t(scaleOver255 * mapData[mapIndex + xChannel] +
                      scaleAdjustment);
      int32_t sourceY =
          y + scaleOver255 * mapData[mapIndex + yChannel] + scaleAdjustment;
          y + int32_t(scaleOver255 * mapData[mapIndex + yChannel] +
                      scaleAdjustment);
      *(uint32_t*)(targetData + targIndex) = ColorAtPoint(
          sourceData, sourceStride, sourceBegin, sourceEnd, sourceX, sourceY);
    }