Fixed Area.Repaint() bugs on GTK+.

This commit is contained in:
Pietro Gagliardi 2014-08-21 20:45:46 -04:00
parent df8cbec7b8
commit ec58f2ac1c
1 changed files with 1 additions and 1 deletions

View File

@ -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_surface_mark_dirty(surface)
C.cairo_set_source_surface(cr, C.cairo_set_source_surface(cr,
surface, 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 // 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) // (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 C.cairo_rectangle(cr, x0, y0, x1, y1) // breaking the norm here since we have the coordinates as a C double already