From 6cba6d00481bcc1d003809c9517f935fa490b0f8 Mon Sep 17 00:00:00 2001 From: jan.dudek Date: Tue, 16 Dec 2008 19:44:23 +0000 Subject: Disabling alpha support. Didn't work properly. git-svn-id: http://gdk-pixbuf-psd.googlecode.com/svn/trunk@9 c5539ac3-5556-0410-9a1f-7faf0b045682 --- io-psd.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/io-psd.c b/io-psd.c index 1d1b8ce..2cdb688 100644 --- a/io-psd.c +++ b/io-psd.c @@ -25,8 +25,6 @@ * - use http://library.gnome.org/devel/glib/unstable/glib-Byte-Order-Macros.html * - report errors from parse_psd_header * - other color modes (CMYK at least) - * - ... - * - MODULE_ENTRY stuff * - i18n */ @@ -176,7 +174,7 @@ feed_buffer (guchar* buffer, * Attempts to read size of the block and then skip this block. * * Returns true when finishes consuming block data, otherwise false - * (false means we must call skip_block once again) + * (false means we need to call skip_block again) */ static gboolean skip_block (PsdContext* context, const guchar** data, guint* size) @@ -340,9 +338,10 @@ gdk_pixbuf__psd_image_load_increment (gpointer context_ptr, ctx->depth = hd.depth; ctx->color_mode = hd.color_mode; + /* if (ctx->color_mode == PSD_MODE_RGB && ctx->channels == 4) { ctx->use_alpha = TRUE; - } + }*/ //g_message("color_mode=%d, channels=%d, depth=%d", // ctx->color_mode, ctx->channels, ctx->depth); -- cgit v1.1-32-gdbae