]> git.sur5r.net Git - glabels/commitdiff
Applied patch #822935. This patch slightly increases the invalidated area during...
authorJim Evins <evins@snaught.com>
Wed, 15 Oct 2003 01:02:46 +0000 (01:02 +0000)
committerJim Evins <evins@snaught.com>
Wed, 15 Oct 2003 01:02:46 +0000 (01:02 +0000)
git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@315 f5e0f49d-192f-0410-a22d-a8d8700d0965

glabels2/src/canvas-hacktext.c
glabels2/src/view-barcode.c

index 8db1ef4c282c93258c6a64be5f9ca8b335df1e02..0c3ba8d80d86f64d3fe2f354cb8de12fd5a140a4 100644 (file)
@@ -541,6 +541,15 @@ gl_canvas_hacktext_req_repaint (glCanvasHacktext *hacktext,
        if (gnome_pgl_bbox (hacktext->priv->pgl, &gbbox)) {
                ArtIRect ibox;
                art_drect_to_irect (&ibox, &gbbox);
+
+               /* hack: bounding box seems to be underestimated.
+                * It may be doesn't take into account antialiasing*/
+
+               ibox.x0--;
+               ibox.y0--;
+               ibox.x1++;
+               ibox.y1++;
+               
                gnome_canvas_request_redraw (hacktext->item.canvas, ibox.x0, ibox.y0, ibox.x1, ibox.y1);
                if (bbox) art_irect_union (bbox, bbox, &ibox);
        }
index 689a0d01c88aa92ac0ea4ff84fca1df458d5a0f8..e2782c03bf38b4141ade9da1162928da50d784d7 100644 (file)
@@ -856,7 +856,7 @@ draw_barcode (glViewBarcode *view_barcode)
                        y_offset =
                            bchar->fsize - gnome_font_get_descender (font);
                        item = gl_view_object_item_new (GL_VIEW_OBJECT(view_barcode),
-                                                       gnome_canvas_hacktext_get_type (),
+                                                       gl_canvas_hacktext_get_type (),
                                                        "x", bchar->x,
                                                        "y", bchar->y + y_offset,
                                                        "glyphlist", glyphlist,