diff options
Diffstat (limited to 'area_unix.go')
| -rw-r--r-- | area_unix.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/area_unix.go b/area_unix.go index 08dd48d..0155bdc 100644 --- a/area_unix.go +++ b/area_unix.go @@ -48,6 +48,7 @@ func our_area_draw_callback(widget *C.GtkWidget, cr *C.cairo_t, data C.gpointer) s := (*sysData)(unsafe.Pointer(data)) // thanks to desrt in irc.gimp.net/#gtk+ C.cairo_clip_extents(cr, &x, &y, &w, &h) + // we do not need to clear the cliprect; GtkDrawingArea did it for us beforehand cliprect := image.Rect(int(x), int(y), int(w), int(h)) // the cliprect can actually fall outside the size of the Area; clip it by intersecting the two rectangles C.gtk_widget_get_size_request(widget, &maxwid, &maxht) |
