Fix bug with calendar background
authorHugo Villeneuve <hvilleneuve@dimonoff.com>
Mon, 18 Oct 2021 19:55:17 +0000 (15:55 -0400)
committerHugo Villeneuve <hvilleneuve@dimonoff.com>
Mon, 18 Oct 2021 19:55:17 +0000 (15:55 -0400)
src/clock.c

index beff278..60ebdd4 100644 (file)
@@ -353,6 +353,11 @@ draw_calendar(GtkWidget *clock, cairo_t *cr)
 
        cairo_save(cr);
 
+       cairo_set_source_rgb(cr, 1.0, 1.0, 1.0); /* White background */
+       cairo_rectangle(cr, 0, 0, 64, 64);
+       cairo_fill(cr);
+       cairo_stroke(cr);
+
        cairo_select_font_face(cr, "sans-serif", CAIRO_FONT_SLANT_NORMAL,
                               CAIRO_FONT_WEIGHT_BOLD);
        cairo_set_source_rgb(cr, 0.0, 0.0, 0.0); /* Black text */