git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
732e202
)
fix byte order for jpg
author
Felix Domke
<tmbinc@elitedvb.net>
Tue, 22 Jan 2008 01:17:18 +0000
(
01:17
+0000)
committer
Felix Domke
<tmbinc@elitedvb.net>
Tue, 22 Jan 2008 01:17:18 +0000
(
01:17
+0000)
lib/gdi/epng.cpp
patch
|
blob
|
history
diff --git
a/lib/gdi/epng.cpp
b/lib/gdi/epng.cpp
index 46b3a9b508512a4fea6d24e6943fc7782ad6be86..6b08c2d8823186c30f34a2130f1d7a831122e864 100644
(file)
--- 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