Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/quicktime/apple/quicktime_import.c')
-rw-r--r--source/blender/quicktime/apple/quicktime_import.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/quicktime/apple/quicktime_import.c b/source/blender/quicktime/apple/quicktime_import.c
index 27270e56ee3..4530921aefe 100644
--- a/source/blender/quicktime/apple/quicktime_import.c
+++ b/source/blender/quicktime/apple/quicktime_import.c
@@ -51,6 +51,7 @@
#endif /* _WIN32 */
#include "quicktime_import.h"
+#include "quicktime_export.h"
#define RECT_WIDTH(r) (r.right-r.left)
@@ -652,16 +653,21 @@ bail:
}
if(ibuf) {
+
#ifdef _WIN32
- // add alpha layer, might also be nescessary for OSX
+// add non transparent alpha layer, so images without alpha show up in the sequence editor
+// exception for GIF images since these can be transparent without being 32 bit
+// (might also be nescessary for OSX)
int i;
int box = x * y;
unsigned char *arect = (unsigned char *) ibuf->rect;
- if(depth < 32)
+ if( depth < 32 && (**desc).cType != kGIFCodecType) {
for(i = 0; i < box; i++, arect+=4)
arect[3] = 0xFF;
+ }
#endif
+
IMB_flipy(ibuf);
ibuf->ftype = QUICKTIME;
}