ports/graphics/pfstools/files/patch-src-fileformat-pfsoutimgmagick.cpp
Danilo Egea Gondolfo ce3d606a5b - Update from 1.6.4 to 1.8.5 [1]
- Use options helpers

PR:		ports/191179
Submitted by:	ii@any.com.ru [1]
2014-06-20 17:17:54 +00:00

10 lines
527 B
C++

--- src/fileformat/pfsoutimgmagick.cpp.orig 2011-03-15 08:47:24.000000000 +0000
+++ src/fileformat/pfsoutimgmagick.cpp 2014-02-20 19:04:01.546588828 +0000
@@ -190,6 +190,7 @@
if( alpha != NULL )
imgBuffer[i++] = (unsigned short)(maxValue-clamp((*alpha)(pix),0.f,1.f)*maxValue);
}
+ Magick::InitializeMagick(*argv);
Magick::Image imImage( frame->getWidth(), frame->getHeight(),
(alpha == NULL ? "RGB" : "RGBA"), Magick::ShortPixel, imgBuffer );
imImage.quality( quality );