fix: flush instead of finish

Co-authored-by: Uli Schlachter <psychon@znc.in>
Co-authored-by: ezz666 <ezz666@yandex.ru>
This commit is contained in:
Aire-One 2021-10-15 18:25:04 +02:00
parent 6d569f9e3b
commit 1f4ce1f4cb

View file

@ -94,7 +94,7 @@ local function copy_to_image_surface(content, w, h)
cr:set_source_surface(sur)
cr:paint()
img:finish()
img:flush()
return img
end