git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efbba60
)
reversed the order of r,g,b in the 16 bit conversion.
author
kramm
<kramm>
Tue, 26 Oct 2004 15:22:40 +0000
(15:22 +0000)
committer
kramm
<kramm>
Tue, 26 Oct 2004 15:22:40 +0000
(15:22 +0000)
avi2swf/videoreader_vfw.cc
patch
|
blob
|
history
diff --git
a/avi2swf/videoreader_vfw.cc
b/avi2swf/videoreader_vfw.cc
index
207b0b7
..
5a6a8d3
100644
(file)
--- a/
avi2swf/videoreader_vfw.cc
+++ b/
avi2swf/videoreader_vfw.cc
@@
-141,7
+141,7
@@
static int bitmap_to_rgba(BITMAPINFOHEADER*bi, void*buffer, const int dest_width
int x;
for(x=0;x<dest_width;x++) {
USHORT c = line[0]|line[1]<<8;
- *dest++ = 255|(c&0x1f)<<(8+3)|(c>>5&0x1f)<<(16+3)|(c>>10&0x1f)<<(24+3);
+ *dest++ = 255|(c&0x1f)<<(24+3)|(c>>5&0x1f)<<(16+3)|(c>>10&0x1f)<<(8+3);
line+=2;
}
}