diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-09-11 15:30:32 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-09-11 15:30:32 +0400 |
commit | 695c354b61955b8521b05a3e6458cddb496316ee (patch) | |
tree | 76b39ead5cc826fd062092aada0893e4e149a97a /source/blender | |
parent | 5eb1d5e3dcf4160b62118935c803f411b7283e62 (diff) |
Fix for bug #17602: 32 bit bmp files were read with red and blue swapped.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/imbuf/intern/bmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/bmp.c b/source/blender/imbuf/intern/bmp.c index 2aa276a5f53..141b8a985cf 100644 --- a/source/blender/imbuf/intern/bmp.c +++ b/source/blender/imbuf/intern/bmp.c @@ -164,9 +164,9 @@ struct ImBuf *imb_bmp_decode(unsigned char *mem, int size, int flags) } } else if (depth == 32) { for (i = x * y; i > 0; i--) { - rect[0] = bmp[0]; + rect[0] = bmp[2]; rect[1] = bmp[1]; - rect[2] = bmp[2]; + rect[2] = bmp[0]; rect[3] = bmp[3]; rect += 4; bmp += 4; } |