ext/RMagick/rmfill.cpp in rmagick-5.4.4 vs ext/RMagick/rmfill.cpp in rmagick-5.5.0
- old
+ new
@@ -632,11 +632,11 @@
/**
* Call GradientFill with the start and stop colors specified when this fill
* object was created.
*
- * @param image_obj [Magick::Image] the image to fill
+ * @param image_obj [Magick::Image, Magick::ImageList] the image to fill
* @return [Magick::GradientFill] self
*/
VALUE
GradientFill_fill(VALUE self, VALUE image_obj)
{
@@ -644,11 +644,11 @@
Image *image;
PixelColor start_color, stop_color;
double x1, y1, x2, y2; // points on the line
TypedData_Get_Struct(self, rm_GradientFill, &rm_gradient_fill_data_type, fill);
- image = rm_check_destroyed(image_obj);
+ image = rm_check_destroyed(rm_cur_image(image_obj));
x1 = fill->x1;
y1 = fill->y1;
x2 = fill->x2;
y2 = fill->y2;
@@ -778,11 +778,11 @@
/**
* Call TextureFill with the texture specified when this fill object was
* created.
*
- * @param image_obj [Magick::Image] the image to fill
+ * @param image_obj [Magick::Image, Magick::ImageList] the image to fill
* @return [Magick::TextureFill] self
*/
VALUE
TextureFill_fill(VALUE self, VALUE image_obj)
{
@@ -790,10 +790,10 @@
Image *image;
#if defined(IMAGEMAGICK_7)
ExceptionInfo *exception;
#endif
- image = rm_check_destroyed(image_obj);
+ image = rm_check_destroyed(rm_cur_image(image_obj));
TypedData_Get_Struct(self, rm_TextureFill, &rm_texture_fill_data_type, fill);
#if defined(IMAGEMAGICK_7)
exception = AcquireExceptionInfo();
TextureImage(image, fill->texture, exception);