mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-10 07:00:53 +00:00
visualizer-ticks: tweak half-line positioning
Just to get things a bit more friendly should we choose even line widths.
This commit is contained in:
@ -86,8 +86,8 @@ draw_ticks (SpVisualizerTicks *self,
|
|||||||
|
|
||||||
for (gdouble x = 0; x < area->width; x += space)
|
for (gdouble x = 0; x < area->width; x += space)
|
||||||
{
|
{
|
||||||
cairo_move_to (cr, (gint)x - half, 0);
|
cairo_move_to (cr, (gint)x - .5 - (gint)half, 0);
|
||||||
cairo_line_to (cr, (gint)x - half, tick_sizing[ticks].height);
|
cairo_line_to (cr, (gint)x - .5 - (gint)half, tick_sizing[ticks].height);
|
||||||
}
|
}
|
||||||
|
|
||||||
cairo_set_line_width (cr, tick_sizing[ticks].width);
|
cairo_set_line_width (cr, tick_sizing[ticks].width);
|
||||||
|
|||||||
Reference in New Issue
Block a user