From ec58f2ac1c0e601901e1f59135ca7815af258164 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 21 Aug 2014 20:45:46 -0400 Subject: [PATCH] Fixed Area.Repaint() bugs on GTK+. --- redo/area_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redo/area_unix.go b/redo/area_unix.go index 8c732b7..60de5f0 100644 --- a/redo/area_unix.go +++ b/redo/area_unix.go @@ -128,7 +128,7 @@ func our_area_draw_callback(widget *C.GtkWidget, cr *C.cairo_t, data C.gpointer) C.cairo_surface_mark_dirty(surface) C.cairo_set_source_surface(cr, surface, - 0, 0) // origin of the surface + x0, y0) // point on cairo_t where we want to draw (thanks Company in irc.gimp.net/#gtk+) // that just set the brush that cairo uses: we have to actually draw now // (via https://developer.gnome.org/gtkmm-tutorial/stable/sec-draw-images.html.en) C.cairo_rectangle(cr, x0, y0, x1, y1) // breaking the norm here since we have the coordinates as a C double already