[poppler] poppler/SplashOutputDev.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Sun May 29 09:46:20 UTC 2016
poppler/SplashOutputDev.cc | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
New commits:
commit 8ace48fb07b81cab6ae68dc23d173e7441ad6d2e
Author: Albert Astals Cid <aacid at kde.org>
Date: Sun May 29 11:45:55 2016 +0200
SplashOutputDev: Fix iccTransform + splashModeXBGR8
diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc
index eeb6cc3..688540b 100644
--- a/poppler/SplashOutputDev.cc
+++ b/poppler/SplashOutputDev.cc
@@ -3278,17 +3278,17 @@ void SplashOutputDev::iccTransform(void *data, SplashBitmap *bitmap) {
Guchar *q;
Guchar *b = p;
int x;
- for (x = 0, q = rgbxLine; x < bitmap->getWidth(); ++x, ++b) {
- *q++ = *b++;
- *q++ = *b++;
- *q++ = *b++;
+ for (x = 0, q = rgbxLine; x < bitmap->getWidth(); ++x, b+=4) {
+ *q++ = b[2];
+ *q++ = b[1];
+ *q++ = b[0];
}
imgData->colorMap->getRGBLine(rgbxLine, colorLine, bitmap->getWidth());
b = p;
- for (x = 0, q = colorLine; x < bitmap->getWidth(); ++x, ++b) {
- *b++ = *q++;
- *b++ = *q++;
- *b++ = *q++;
+ for (x = 0, q = colorLine; x < bitmap->getWidth(); ++x, b+=4) {
+ b[2] = *q++;
+ b[1] = *q++;
+ b[0] = *q++;
}
break;
}
More information about the poppler
mailing list