Repintado teniendo en cuenta el zoom
authordanigm <dani@danigm.net>
Mon, 15 Mar 2010 20:59:54 +0000 (20:59 +0000)
committerdanigm <danigm@aa302d1f-72b1-406a-902b-8593ca2b2744>
Mon, 15 Mar 2010 20:59:54 +0000 (20:59 +0000)
From: danigm <dani@danigm.net>

git-svn-id: https://forja.rediris.es/svn/cusl4-tbo@93 aa302d1f-72b1-406a-902b-8593ca2b2744

src/ui-drawing.c

index 8896020..060caeb 100644 (file)
@@ -254,10 +254,13 @@ darea_connect_signals (TboWindow *tbo)
 void
 update_drawing (TboWindow *tbo)
 {
+    int w, h;
+    w = tbo->comic->width * ZOOM;
+    h = tbo->comic->height * ZOOM;
+
     gtk_widget_queue_draw_area (tbo->drawing,
             0, 0,
-            tbo->comic->width,
-            tbo->comic->height);
+            w, h);
 }
 
 void