support alpha for tile background color

This commit is contained in:
Gwendolyn 2024-09-17 21:01:35 +02:00
parent 5c176bc7bb
commit 300d85e5ed
2 changed files with 2 additions and 2 deletions

View file

@ -121,7 +121,7 @@ class SVGEngine(RenderEngine):
svg.render_cairo(buffered_context)
# create cropped image
surface = buffered_surface.create_similar(cairo.CONTENT_COLOR, self.width, self.height)
surface = buffered_surface.create_similar(cairo.CONTENT_COLOR_ALPHA, self.width, self.height)
context = cairo.Context(surface)
# set background color