summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar jan.dudek2008-12-16 19:44:23 +0000
committerGravatar jan.dudek2008-12-16 19:44:23 +0000
commit6cba6d00481bcc1d003809c9517f935fa490b0f8 (patch)
treec1e10fb385e608e3bec16079e24d4b8df38da778
parent82c2d80e8579d13f2ad084b00d6868e2b5ab32c3 (diff)
downloadgdk-pixbuf-psd-6cba6d00481bcc1d003809c9517f935fa490b0f8.tar.gz
gdk-pixbuf-psd-6cba6d00481bcc1d003809c9517f935fa490b0f8.tar.bz2
Disabling alpha support. Didn't work properly.
git-svn-id: http://gdk-pixbuf-psd.googlecode.com/svn/trunk@9 c5539ac3-5556-0410-9a1f-7faf0b045682
-rw-r--r--io-psd.c7
1 files 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);