From e1f112114949418799f6651394f20e9299f42199 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Lindqvist?= Date: Fri, 10 Aug 2007 23:34:26 +0000 Subject: [PATCH] Note in docs that @dest's width and height is set to 0, 0 if the MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2007-08-11 Björn Lindqvist * gdk/gdkrectangle.c (gdk_rectangle_intersect): Note in docs that @dest's width and height is set to 0, 0 if the rectangles does not intersect. (#464524) svn path=/trunk/; revision=18602 --- gdk/gdkrectangle.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gdk/gdkrectangle.c b/gdk/gdkrectangle.c index 0e13b14bb..71679f98f 100644 --- a/gdk/gdkrectangle.c +++ b/gdk/gdkrectangle.c @@ -64,8 +64,10 @@ gdk_rectangle_union (GdkRectangle *src1, * @src2: a #GdkRectangle * @dest: return location for the intersection of @src1 and @src2 * - * Calculates the intersection of two rectangles. - * It is allowed for @dest to be the same as either @src1 or @src2. + * Calculates the intersection of two rectangles. It is allowed for + * @dest to be the same as either @src1 or @src2. If the rectangles + * doesn't intersect, @dest's width and height is set to 0 and its x + * and y values are undefined. * * Returns: %TRUE if the rectangles intersect. */