diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-21 20:45:46 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-21 20:45:46 -0400 |
| commit | ec58f2ac1c0e601901e1f59135ca7815af258164 (patch) | |
| tree | 044c4185bff8f3ddfba41642a05cb8c6abf16c62 /redo/area_unix.go | |
| parent | df8cbec7b8928c22a461468b6bef3078d3d831ea (diff) | |
Fixed Area.Repaint() bugs on GTK+.
Diffstat (limited to 'redo/area_unix.go')
| -rw-r--r-- | redo/area_unix.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
