Fix clipping.

svn path=/trunk/netsurf/; revision=4223
This commit is contained in:
John Mark Bell 2008-05-29 11:17:30 +00:00
parent 601c02f08b
commit e17b53bc02
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}