projects
/
dockapps
/
hvclock.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c42fc78
)
Fix bug with calendar background
author
Hugo Villeneuve
<hvilleneuve@dimonoff.com>
Mon, 18 Oct 2021 19:55:17 +0000
(15:55 -0400)
committer
Hugo Villeneuve
<hvilleneuve@dimonoff.com>
Mon, 18 Oct 2021 19:55:17 +0000
(15:55 -0400)
src/clock.c
patch
|
blob
|
history
diff --git
a/src/clock.c
b/src/clock.c
index
beff278
..
60ebdd4
100644
(file)
--- a/
src/clock.c
+++ b/
src/clock.c
@@
-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 */