[gtk+/client-side-windows: 95/284] Avoid extending implicit paint size due to empty regions not working well with gdk_rectangle_union o
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-windows: 95/284] Avoid extending implicit paint size due to empty regions not working well with gdk_rectangle_union o
- Date: Thu, 2 Apr 2009 14:07:43 -0400 (EDT)
commit 3c5c7f4b4ddf1d7b6d0bf6dc442ba577f1f96019
Author: Alexander Larsson <alexl redhat com>
Date: Tue Jan 20 21:11:30 2009 +0100
Avoid extending implicit paint size due to empty regions not working well with gdk_rectangle_union on clipbox
---
gdk/gdkwindow.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 041db2f..3212d70 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -1962,8 +1962,11 @@ gdk_window_begin_implicit_paint (GdkWindow *window, GdkRectangle *rect)
{
move = l->data;
- gdk_region_get_clipbox (move->region, &clipbox);
- gdk_rectangle_union (&r, &clipbox, &r);
+ if (!gdk_region_empty (move->region))
+ {
+ gdk_region_get_clipbox (move->region, &clipbox);
+ gdk_rectangle_union (&r, &clipbox, &r);
+ }
}
paint = g_new (GdkWindowPaint, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]