[sysprof/wip/chergert/sysprof-3] libsysprof-ui: stroke line on half-pixel boundary



commit ac85ed712c5f4920f9ee30ba9bd3bce731fd4961
Author: Christian Hergert <chergert redhat com>
Date:   Fri May 17 10:21:24 2019 -0700

    libsysprof-ui: stroke line on half-pixel boundary

 src/libsysprof-ui/sysprof-cell-renderer-duration.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libsysprof-ui/sysprof-cell-renderer-duration.c 
b/src/libsysprof-ui/sysprof-cell-renderer-duration.c
index 4a3ff73..dbdb72c 100644
--- a/src/libsysprof-ui/sysprof-cell-renderer-duration.c
+++ b/src/libsysprof-ui/sysprof-cell-renderer-duration.c
@@ -122,8 +122,8 @@ sysprof_cell_renderer_duration_render (GtkCellRenderer      *renderer,
   else
     {
       cairo_set_line_width (cr, 1);
-      cairo_move_to (cr, r.x, r.y);
-      cairo_line_to (cr, r.x, r.y + r.height);
+      cairo_move_to (cr, r.x + .5, r.y);
+      cairo_line_to (cr, r.x + .5, r.y + r.height);
       cairo_stroke (cr);
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]