diff --git a/formats/c.lua b/formats/c.lua index 8277636..42c8db4 100644 --- a/formats/c.lua +++ b/formats/c.lua @@ -55,6 +55,7 @@ cr = cairo_create(temp_surface);]], fill = {post = "cairo_fill_preserve(cr);\n /********************/"}, stroke = {post = "cairo_stroke_preserve(cr);\n/********************/"}, + paint = {post = "cairo_paint(cr);\n/********************/"}, mask = {}, operator = "cairo_set_operator(cr, CAIRO_OPERATOR_$value);", diff --git a/formats/lua-oocairo.lua b/formats/lua-oocairo.lua index 0cb4b0d..e150c93 100644 --- a/formats/lua-oocairo.lua +++ b/formats/lua-oocairo.lua @@ -59,6 +59,7 @@ cr = Cairo.context_create(temp_surface)]], fill = {post = "cr:fill_preserve()\n----------------------"}, stroke = {post = "cr:stroke_preserve()\n----------------------"}, + paint = {post = "cr:paint()\n----------------------"}, mask = {}, operator = function(state, value) return format('cr:set_operator("%s")', lower(value)) end,