mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-24 14:45:46 +00:00
overlay: Wrap the colour index around the rgba array
And stop assigning colours beyond the end of the array. Still needs a better method for colour assignment, big list of good colours & ida? Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
+1
-1
@@ -263,7 +263,7 @@ static void show_gpu_perf(struct overlay_context *ctx, struct overlay_gpu_perf *
|
|||||||
rgba[last_color][1],
|
rgba[last_color][1],
|
||||||
rgba[last_color][2],
|
rgba[last_color][2],
|
||||||
rgba[last_color][3]);
|
rgba[last_color][3]);
|
||||||
last_color++;
|
last_color = (last_color + 1) % 4;
|
||||||
chart_set_stroke_width(comm->user_data, 1);
|
chart_set_stroke_width(comm->user_data, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user