ext/RMagick/rmimage.c in rmagick-2.9.0 vs ext/RMagick/rmimage.c in rmagick-2.9.1
- old
+ new
@@ -1,6 +1,6 @@
-/* $Id: rmimage.c,v 1.343 2009/01/12 23:08:35 rmagick Exp $ */
+/* $Id: rmimage.c,v 1.344 2009/01/17 21:03:46 rmagick Exp $ */
/*============================================================================\
| Copyright (C) 2008 by Timothy P. Hunter
| Name: rmimage.c
| Author: Tim Hunter
| Purpose: Image class method definitions for RMagick
@@ -1552,16 +1552,12 @@
geom_str = rm_to_s(geom_arg);
geometry = StringValuePtr(geom_str);
memset(&rect, 0, sizeof(rect));
-#if defined(HAVE_NEWPARSESIZEGEOMETRY)
- flags = ParseSizeGeometry(image, geometry, &rect, &image->exception);
-#else
- flags = ParseSizeGeometry(image, geometry, &rect);
-#endif
+ SetGeometry(image, &rect);
rm_check_image_exception(image, RetainOnError);
-
+ flags = ParseMetaGeometry(geometry, &rect.x,&rect.y, &rect.width,&rect.height);
if (flags == NoValue)
{
rb_raise(rb_eArgError, "invalid geometry string `%s'", geometry);
}