From: Felix Domke Date: Tue, 22 Jan 2008 01:17:18 +0000 (+0000) Subject: fix byte order for jpg X-Git-Tag: 2.6.0~1618 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/a7bc33d32456ef664d35538860bbc4b98de27a27?hp=732e20261f329753d174074562344cd2692c417d fix byte order for jpg --- 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 &result, const char *filename, ePtr 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