*
* Copy the contents from @src to @dest.
*
+ * Note: Since: 1.18, @dest dimensions are allowed to be
+ * smaller than @src dimensions.
+ *
* Returns: TRUE if the contents could be copied.
*/
gboolean
dinfo = &dest->info;
g_return_val_if_fail (dinfo->finfo->format == sinfo->finfo->format, FALSE);
- g_return_val_if_fail (dinfo->width == sinfo->width
- && dinfo->height == sinfo->height, FALSE);
+ g_return_val_if_fail (dinfo->width <= sinfo->width
+ && dinfo->height <= sinfo->height, FALSE);
n_planes = dinfo->finfo->n_planes;