diff options
Diffstat (limited to 'io-psd.c')
| -rw-r--r-- | io-psd.c | 7 |
1 files changed, 3 insertions, 4 deletions
| @@ -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 | */ |
| 181 | static gboolean | 179 | static gboolean |
| 182 | skip_block (PsdContext* context, const guchar** data, guint* size) | 180 | skip_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); |
