mirror of
https://github.com/jjsullivan5196/wvkbd.git
synced 2025-03-12 18:32:48 +01:00
Restore cairo also when using rounding
Cairo is properly restored when not rounding, but in the codepath for rounding it is not. Call cairo_restore() in both cases, otherwise artefacts appear when using transparent fonts. Signed-off-by: Frank Oltmanns <frank@oltmanns.dev> Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This commit is contained in:
parent
7d677d23b7
commit
d5db545dcc
2
drw.c
2
drw.c
@ -99,6 +99,8 @@ drw_do_rectangle(struct drwsurf *d, Color color, uint32_t x, uint32_t y,
|
|||||||
cairo_set_source_rgba(d->cairo, 0, 0, 0, 0.9);
|
cairo_set_source_rgba(d->cairo, 0, 0, 0, 0.9);
|
||||||
cairo_set_line_width(d->cairo, 1.0);
|
cairo_set_line_width(d->cairo, 1.0);
|
||||||
cairo_stroke(d->cairo);
|
cairo_stroke(d->cairo);
|
||||||
|
|
||||||
|
cairo_restore(d->cairo);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
cairo_rectangle(d->cairo, x, y, w, h);
|
cairo_rectangle(d->cairo, x, y, w, h);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user