Skip to content

Commit

Permalink
Added support for the paint operator to the backends.
Browse files Browse the repository at this point in the history
  • Loading branch information
akrinke committed Jan 6, 2011
1 parent dfee6c0 commit 4c0976a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions formats/c.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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);",
Expand Down
1 change: 1 addition & 0 deletions formats/lua-oocairo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4c0976a

Please sign in to comment.