mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-18 20:03:06 +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:
@@ -382,7 +382,10 @@ cairo_t *igt_get_cairo_ctx(int fd, struct igt_fb *fb)
|
||||
surface = get_cairo_surface(fd, fb);
|
||||
cr = cairo_create(surface);
|
||||
cairo_surface_destroy(surface);
|
||||
igt_assert(cairo_status(cr) == CAIRO_STATUS_SUCCESS);
|
||||
|
||||
cairo_select_font_face(cr, "Helvetica", CAIRO_FONT_SLANT_NORMAL,
|
||||
CAIRO_FONT_WEIGHT_NORMAL);
|
||||
igt_assert(cairo_status(cr) == CAIRO_STATUS_SUCCESS);
|
||||
|
||||
return cr;
|
||||
|
||||
Reference in New Issue
Block a user