render: erase before rendering bg + curved borders (cairo mode only) #91

Manually merged
dnkl merged 1 commits from cairo-erase-bg into master 7 months ago
  1. 3
      CHANGELOG.md
  2. 5
      render.c

@ -67,6 +67,9 @@
(https://codeberg.org/dnkl/fuzzel/issues/80).
* Tab and Shift+Tab not wrapping around
(https://codeberg.org/dnkl/fuzzel/issues/78).
* Visual glitches in the corners, when using rounded corners
(https://codeberg.org/dnkl/fuzzel/issues/90).
### Security
### Contributors

@ -96,6 +96,11 @@ render_background(const struct render *render, struct buffer *buf)
});
} else {
#if defined(FUZZEL_ENABLE_CAIRO)
/* Erase */
cairo_set_operator(buf->cairo, CAIRO_OPERATOR_CLEAR);
cairo_rectangle(buf->cairo, 0, 0, buf->width, buf->height);
cairo_fill(buf->cairo);
/*
* Lines in cairo are *between* pixels.
*

Loading…
Cancel
Save