mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-10 15:10:53 +00:00
visualizer: ignore anchor x/y position
We don't need that, and it breaks for things not at index 0,0.
This commit is contained in:
@ -299,8 +299,8 @@ sp_visualizer_row_translate_points (SpVisualizerRow *self,
|
|||||||
|
|
||||||
for (guint i = 0; i < n_in_points; i++)
|
for (guint i = 0; i < n_in_points; i++)
|
||||||
{
|
{
|
||||||
out_points[i].x = alloc.x + (in_points[i].x * graph_width);
|
out_points[i].x = (in_points[i].x * graph_width);
|
||||||
out_points[i].y = alloc.y + alloc.height - (in_points[i].y * alloc.height);
|
out_points[i].y = alloc.height - (in_points[i].y * alloc.height);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user