diff options
-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); |