Loading

Paste #pisaix1zp

  1. diff --git a/AnimationEncoder/image.cpp b/AnimationEncoder/image.cpp
  2. index 9f65e62..2f12fec 100644
  3. --- a/AnimationEncoder/image.cpp
  4. +++ b/AnimationEncoder/image.cpp
  5. @@ -339,7 +339,7 @@ Image32bpp *Load32Bpp(const std::string &sFilename, int line, int *left, int *wi
  6.      uint32 *pData = img->pData;
  7.      for (int i = 0; i < *height; i++)
  8.      {
  9. -        uint8 *pRow = pRows[*top + i] + *left;
  10. +        uint8 *pRow = pRows[*top + i] + (*left * 4);
  11.          for (int j = 0; j < *width; j++)
  12.          {
  13.              *pData++ = MakeRGBA(pRow[0], pRow[1], pRow[2], pRow[3]);

Comments