[gtk+/rendering-cleanup: 36/142] 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/142] gdk: Don't use clear_area_e() in offscreenwindow
- Date: Tue, 14 Sep 2010 15:37:57 +0000 (UTC)
commit 68d60653f913ba9490f80133b71ce37e5d48b44f
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 f109e25..4dec11e 100644
--- a/gdk/gdkoffscreenwindow.c
+++ b/gdk/gdkoffscreenwindow.c
@@ -540,9 +540,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]