Revision: 16471
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16471
Author:   blendix
Date:     2008-09-11 13:30:32 +0200 (Thu, 11 Sep 2008)

Log Message:
-----------
Fix for bug #17602: 32 bit bmp files were read with red and blue swapped.

Modified Paths:
--------------
    trunk/blender/source/blender/imbuf/intern/bmp.c

Modified: trunk/blender/source/blender/imbuf/intern/bmp.c
===================================================================
--- trunk/blender/source/blender/imbuf/intern/bmp.c     2008-09-11 10:17:17 UTC 
(rev 16470)
+++ trunk/blender/source/blender/imbuf/intern/bmp.c     2008-09-11 11:30:32 UTC 
(rev 16471)
@@ -164,9 +164,9 @@
                        }
                } 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;
                        }


_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to