aboutsummaryrefslogtreecommitdiff
path: root/src/dw-hdfsee.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-03-03 18:54:56 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:17 +0100
commit669df685619faed4a3661a185acb0b2c94885906 (patch)
tree14a8f7adbf5c09d6448bf999ac6b2a154d0e2d7e /src/dw-hdfsee.c
parent9515f8664c5194caacb2308d62d92a8b4430507b (diff)
Avoid using gdk_window_create_similar_surface()
Diffstat (limited to 'src/dw-hdfsee.c')
-rw-r--r--src/dw-hdfsee.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c
index d0b23bbe..a99cfc15 100644
--- a/src/dw-hdfsee.c
+++ b/src/dw-hdfsee.c
@@ -333,9 +333,8 @@ static int write_png(const char *filename, DisplayWindow *dw)
cairo_t *cr;
cairo_surface_t *surf;
- surf = gdk_window_create_similar_surface(dw->drawingarea->window,
- CAIRO_CONTENT_COLOR,
- dw->width, dw->height);
+ surf = cairo_image_surface_create(CAIRO_FORMAT_ARGB32,
+ dw->width, dw->height);
draw_stuff(surf, dw);