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 @@
25 * - use http://library.gnome.org/devel/glib/unstable/glib-Byte-Order-Macros.html 25 * - use http://library.gnome.org/devel/glib/unstable/glib-Byte-Order-Macros.html
26 * - report errors from parse_psd_header 26 * - report errors from parse_psd_header
27 * - other color modes (CMYK at least) 27 * - other color modes (CMYK at least)
28 * - ...
29 * - MODULE_ENTRY stuff
30 * - i18n 28 * - i18n
31 */ 29 */
32 30
@@ -176,7 +174,7 @@ feed_buffer (guchar* buffer,
176 * Attempts to read size of the block and then skip this block. 174 * Attempts to read size of the block and then skip this block.
177 * 175 *
178 * Returns true when finishes consuming block data, otherwise false 176 * Returns true when finishes consuming block data, otherwise false
179 * (false means we must call skip_block once again) 177 * (false means we need to call skip_block again)
180 */ 178 */
181static gboolean 179static gboolean
182skip_block (PsdContext* context, const guchar** data, guint* size) 180skip_block (PsdContext* context, const guchar** data, guint* size)
@@ -340,9 +338,10 @@ gdk_pixbuf__psd_image_load_increment (gpointer context_ptr,
340 ctx->depth = hd.depth; 338 ctx->depth = hd.depth;
341 ctx->color_mode = hd.color_mode; 339 ctx->color_mode = hd.color_mode;
342 340
341 /*
343 if (ctx->color_mode == PSD_MODE_RGB && ctx->channels == 4) { 342 if (ctx->color_mode == PSD_MODE_RGB && ctx->channels == 4) {
344 ctx->use_alpha = TRUE; 343 ctx->use_alpha = TRUE;
345 } 344 }*/
346 345
347 //g_message("color_mode=%d, channels=%d, depth=%d", 346 //g_message("color_mode=%d, channels=%d, depth=%d",
348 // ctx->color_mode, ctx->channels, ctx->depth); 347 // ctx->color_mode, ctx->channels, ctx->depth);