diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -532,9 +532,8 @@ surface_view_expose (GtkWidget *w, GdkEventExpose *ev) cr = gdk_cairo_create (w->window); gdk_cairo_region (cr, ev->region); cairo_clip (cr); - cairo_set_source_surface (cr, self->surface, - (w->allocation.width - cairo_image_surface_get_width (self->surface))/2, - (w->allocation.height - cairo_image_surface_get_height (self->surface))/2); + cairo_translate (cr, w->allocation.x, w->allocation.y); + cairo_set_source_surface (cr, self->surface, 0, 0); cairo_paint (cr); cairo_destroy (cr); |