mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-21 13:23:02 +00:00
lib/igt_fb: setup font in igt_get_cairo_ctx
We always want the same boring one, so extract it. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
@@ -152,8 +152,6 @@ static int paint_fb(struct igt_fb *fb, const char *test_name,
|
||||
|
||||
igt_paint_test_pattern(cr, fb->width, fb->height);
|
||||
|
||||
cairo_select_font_face(cr, "Helvetica", CAIRO_FONT_SLANT_NORMAL,
|
||||
CAIRO_FONT_WEIGHT_NORMAL);
|
||||
cairo_move_to(cr, fb->width / 2, fb->height / 2);
|
||||
cairo_set_font_size(cr, 24);
|
||||
igt_cairo_printf_line(cr, align_hcenter, 40, "%s", test_name);
|
||||
|
||||
Reference in New Issue
Block a user