Index: src/utils/SkLua.cpp |
diff --git a/src/utils/SkLua.cpp b/src/utils/SkLua.cpp |
index 12e2dd8ddfeb9042c4038952c341d98465f7df20..7491086a85ed569368477c070d08c702c478d2d3 100644 |
--- a/src/utils/SkLua.cpp |
+++ b/src/utils/SkLua.cpp |
@@ -761,6 +761,11 @@ static int lpaint_isDither(lua_State* L) { |
return 1; |
} |
+static int lpaint_setDither(lua_State* L) { |
+ get_obj<SkPaint>(L, 1)->setDither(lua2bool(L, 2)); |
+ return 0; |
+} |
+ |
static int lpaint_isUnderlineText(lua_State* L) { |
lua_pushboolean(L, get_obj<SkPaint>(L, 1)->isUnderlineText()); |
return 1; |
@@ -1061,6 +1066,7 @@ static const struct luaL_Reg gSkPaint_Methods[] = { |
{ "isAntiAlias", lpaint_isAntiAlias }, |
{ "setAntiAlias", lpaint_setAntiAlias }, |
{ "isDither", lpaint_isDither }, |
+ { "setDither", lpaint_setDither }, |
{ "isUnderlineText", lpaint_isUnderlineText }, |
{ "isStrikeThruText", lpaint_isStrikeThruText }, |
{ "isFakeBoldText", lpaint_isFakeBoldText }, |