aboutsummaryrefslogtreecommitdiff
path: root/lib/gdi/epng.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gdi/epng.cpp')
-rw-r--r--lib/gdi/epng.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/gdi/epng.cpp b/lib/gdi/epng.cpp
index 46b3a9b5..6b08c2d8 100644
--- a/lib/gdi/epng.cpp
+++ b/lib/gdi/epng.cpp
@@ -210,9 +210,10 @@ int loadJPG(ePtr<gPixmap> &result, const char *filename, ePtr<gPixmap> alpha)
int x;
for (x = 0; x < (int)cinfo.output_width; ++x)
{
- *dst++ = *src++;
- *dst++ = *src++;
- *dst++ = *src++;
+ *dst++ = src[2];
+ *dst++ = src[1];
+ *dst++ = src[0];
+ src += 3;
if (palpha)
*dst++ = *palpha++;
else