From d4bf2f060444c27a40bfd99b368937c915dede80 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sun, 26 May 2019 10:38:24 -0500 Subject: [PATCH] It's time to employ...The COMPRESSOR! --- examples/cluster.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/examples/cluster.c b/examples/cluster.c index a403af2..711da52 100644 --- a/examples/cluster.c +++ b/examples/cluster.c @@ -56,6 +56,12 @@ static void draw_tachometer(cairo_t *cr, double r) { int i; + cairo_select_font_face(cr, "Helvetica", + CAIRO_FONT_SLANT_NORMAL, + CAIRO_FONT_WEIGHT_NORMAL); + + cairo_set_font_size(cr, 24); + cairo_set_source_rgb(cr, 1, 1, 1); cairo_arc(cr, x, y, r, 0, 360); cairo_stroke(cr); @@ -130,15 +136,6 @@ static void draw_mfd(cairo_t *cr, } static void redraw(cairo_t *cr) { - /* - * Set up text - */ - cairo_select_font_face(cr, "Helvetica", - CAIRO_FONT_SLANT_NORMAL, - CAIRO_FONT_WEIGHT_NORMAL); - - cairo_set_font_size(cr, 24); - /* * Paint canvas black */