summaryrefslogtreecommitdiff
path: root/src/cairo/cdcaironative_gdk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cairo/cdcaironative_gdk.c')
-rw-r--r--src/cairo/cdcaironative_gdk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cairo/cdcaironative_gdk.c b/src/cairo/cdcaironative_gdk.c
index e233ed6..143efaf 100644
--- a/src/cairo/cdcaironative_gdk.c
+++ b/src/cairo/cdcaironative_gdk.c
@@ -31,6 +31,7 @@ int cdactivate(cdCtxCanvas *ctxcanvas)
if (old_w != canvas->w || old_h != canvas->h)
{
+ /* Re-create the context so internal size is updated. */
cairo_destroy(ctxcanvas->cr);
ctxcanvas->cr = gdk_cairo_create(ctxcanvas->drawable);