aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/SkLua.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/SkLua.cpp b/src/utils/SkLua.cpp
index 413a207114..445a5a8b95 100644
--- a/src/utils/SkLua.cpp
+++ b/src/utils/SkLua.cpp
@@ -1802,7 +1802,7 @@ static int ltypeface_getFamilyName(lua_State* L) {
}
static int ltypeface_getStyle(lua_State* L) {
- lua_pushnumber(L, (double)get_ref<SkTypeface>(L, 1)->style());
+ push_obj(L, get_ref<SkTypeface>(L, 1)->fontStyle());
return 1;
}