# HG changeset patch # User Joakim # Date 1282122586 -7200 # Node ID 45bb792f536e6cf255bb918091c93794afeddb01 # Parent 3226ac2da7f7de06614e5aef8940b79a869d8a09 minor cleanup diff -r 3226ac2da7f7 -r 45bb792f536e src/image.c --- a/src/image.c Tue Aug 17 23:19:11 2010 +0200 +++ b/src/image.c Wed Aug 18 11:09:46 2010 +0200 @@ -7542,15 +7542,6 @@ image_error ("im read failed", Qnil, Qnil); if (status == MagickFalse) goto imagemagick_error; - - /* if(ino == 0) */ - /* MagickSetFirstIterator(image_wand); */ - /* else */ - /* MagickSetIteratorIndex(image_wand, ino); */ - - //MagickSetFirstIterator(image_wand); - - /* If width and/or height is set in the display spec assume we want to scale to those values. if either h or w is unspecified, the unspecified should be calculated from the specified to preserve @@ -7701,7 +7692,9 @@ if (imagemagick_rendermethod == 1) { - /* Try if magicexportimage is any faster than pixelpushing. */ + /* Magicexportimage is normaly faster than pixelpushing. This + method is also well tested. Some aspects of this method are + ad-hoc and needs to be more researched. */ int imagedepth = 24;/*MagickGetImageDepth(image_wand);*/ char* exportdepth = imagedepth <= 8 ? "I" : "BGRP";/*"RGBP";*/ /* Try to create a x pixmap to hold the imagemagick pixmap. */