From e17b53bc02f0665f8ad18539ed2c7294e0546b01 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 29 May 2008 11:17:30 +0000 Subject: Fix clipping. svn path=/trunk/netsurf/; revision=4223 --- gtk/gtk_plotters.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk/gtk_plotters.c b/gtk/gtk_plotters.c index 7c00a8d3a..62d31539e 100644 --- a/gtk/gtk_plotters.c +++ b/gtk/gtk_plotters.c @@ -188,6 +188,12 @@ bool nsgtk_plot_clip(int clip_x0, int clip_y0, clip_x1 - clip_x0, clip_y1 - clip_y0); cairo_clip(current_cr); + cliprect.x = clip_x0; + cliprect.y = clip_y0; + cliprect.width = clip_x1 - clip_x0; + cliprect.height = clip_y1 - clip_y0; + gdk_gc_set_clip_rectangle(current_gc, &cliprect); + return true; } -- cgit v1.2.3