patch by Pieter Grimmerink: use ext3 largefile option only for disks > 4G
[enigma2.git] / lib / gdi / epng.cpp
index 46b3a9b..6b08c2d 100644 (file)
@@ -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