Filling all drawing area not only visible
authordanigm <dani@danigm.net>
Sun, 25 Jul 2010 18:04:38 +0000 (20:04 +0200)
committerdanigm <dani@danigm.net>
Sun, 25 Jul 2010 18:04:38 +0000 (20:04 +0200)
src/ui-drawing.c

index baf42d6..3955ab3 100644 (file)
@@ -153,8 +153,8 @@ on_expose_cb (GtkWidget      *widget,
     cr = gdk_cairo_create(GTK_LAYOUT (widget)->bin_window);
 
     cairo_set_source_rgb (cr, 0, 0, 0);
-    cairo_rectangle (cr, 0, 0, widget->allocation.width,
-                               widget->allocation.height);
+    cairo_rectangle (cr, 0, 0, tbo->comic->width,
+                               tbo->comic->height);
     cairo_fill (cr);
 
     tbo_drawing_draw (cr, tbo);