ext/RMagick/rmstruct.c in rmagick-4.2.2 vs ext/RMagick/rmstruct.c in rmagick-4.2.3
- old
+ new
@@ -283,11 +283,11 @@
rm_init_magickpixel(NULL, &ci->color);
ci->color.red = (MagickRealType) pixel.red;
ci->color.green = (MagickRealType) pixel.green;
ci->color.blue = (MagickRealType) pixel.blue;
#if defined(IMAGEMAGICK_7)
- ci->color.alpha = (MagickRealType) OpaqueAlpha;
+ rm_set_pixelinfo_alpha(&ci->color, (MagickRealType) OpaqueAlpha);
#else
ci->color.opacity = (MagickRealType) OpaqueOpacity;
#endif
ci->color.index = (MagickRealType) 0;
}
@@ -758,10 +758,10 @@
RB_GC_GUARD(x1);
RB_GC_GUARD(y1);
RB_GC_GUARD(x2);
RB_GC_GUARD(y2);
-
+
return rb_funcall(Class_Segment, rm_ID_new, 4, x1, y1, x2, y2);
}
/**