diff options
author | Thomas White <taw@physics.org> | 2011-03-03 18:54:56 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:17 +0100 |
commit | 669df685619faed4a3661a185acb0b2c94885906 (patch) | |
tree | 14a8f7adbf5c09d6448bf999ac6b2a154d0e2d7e | |
parent | 9515f8664c5194caacb2308d62d92a8b4430507b (diff) |
Avoid using gdk_window_create_similar_surface()
-rw-r--r-- | src/dw-hdfsee.c | 5 |
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); |