ext/RMagick/rmstruct.c in rmagick-3.2.0 vs ext/RMagick/rmstruct.c in rmagick-4.0.0
- old
+ new
@@ -359,16 +359,16 @@
Export_ColorInfo(&ci, self);
sprintf(buff, "name=%s, compliance=%s, "
#if (MAGICKCORE_QUANTUM_DEPTH == 32 || MAGICKCORE_QUANTUM_DEPTH == 64) && defined(HAVE_TYPE_LONG_DOUBLE)
- "color.red=%Lg, color.green=%Lg, color.blue=%Lg, color.opacity=%Lg ",
+ "color.red=%Lg, color.green=%Lg, color.blue=%Lg, color.alpha=%Lg ",
#else
- "color.red=%g, color.green=%g, color.blue=%g, color.opacity=%g ",
+ "color.red=%g, color.green=%g, color.blue=%g, color.alpha=%g ",
#endif
ci.name,
ComplianceType_name(&ci.compliance),
- ci.color.red, ci.color.green, ci.color.blue, ci.color.opacity);
+ ci.color.red, ci.color.green, ci.color.blue, QuantumRange - ci.color.opacity);
destroy_ColorInfo(&ci);
return rb_str_new2(buff);
}