[gtk+/rendering-cleanup: 36/92] gdk: Don't use clear_area_e() in offscreenwindow
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup: 36/92] gdk: Don't use clear_area_e() in offscreenwindow
- Date: Fri, 27 Aug 2010 15:16:38 +0000 (UTC)
commit 7fc3fd3abc5d7f7d4105fca4afcdc68242280c04
Author: Benjamin Otte <otte redhat com>
Date: Sun Aug 15 03:10:16 2010 +0200
gdk: Don't use clear_area_e() in offscreenwindow
Instead, call gdk_window_invalidate_rect() ourselves.
gdk/gdkoffscreenwindow.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdkoffscreenwindow.c b/gdk/gdkoffscreenwindow.c
index 2c80808..bbf18e9 100644
--- a/gdk/gdkoffscreenwindow.c
+++ b/gdk/gdkoffscreenwindow.c
@@ -575,9 +575,11 @@ gdk_offscreen_window_show (GdkWindow *window,
gboolean already_mapped)
{
GdkWindowObject *private = (GdkWindowObject *)window;
+ GdkRectangle area = { 0, 0, private->width, private->height };
- gdk_window_clear_area_e (window, 0, 0,
- private->width, private->height);
+ gdk_window_clear_area (window, 0, 0,
+ private->width, private->height);
+ gdk_window_invalidate_rect (window, &area, FALSE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]