[gtk+/rendering-cleanup: 71/144] gdk: Create surfaces directly, not from the source drawable
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup: 71/144] gdk: Create surfaces directly, not from the source drawable
- Date: Thu, 23 Sep 2010 21:23:20 +0000 (UTC)
commit 7719593453e0a5f3bcc9a45f07f39e6df7fd2423
Author: Benjamin Otte <otte redhat com>
Date: Wed Aug 25 23:35:40 2010 +0200
gdk: Create surfaces directly, not from the source drawable
The notion of a source drawable does not make a lot of sense for windows
that are not backed by a drawable, such as GdkOffscreenWindow after
converting it to cairo_surface_t.
gdk/gdkwindow.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 1b49d9a..03e325b 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -3843,16 +3843,13 @@ gdk_window_ref_cairo_surface (GdkDrawable *drawable)
if (!private->cairo_surface)
{
int width, height;
- GdkDrawable *source;
/* It would be nice if we had some cairo support here so we
could set the clip rect on the cairo surface */
width = private->abs_x + private->width;
height = private->abs_y + private->height;
- source = _gdk_drawable_get_source_drawable (drawable);
-
- private->cairo_surface = _gdk_drawable_create_cairo_surface (source, width, height);
+ private->cairo_surface = _gdk_drawable_create_cairo_surface (drawable, width, height);
if (private->cairo_surface)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]