aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/SkLua.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/SkLua.cpp')
-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 967233d21b..b12e3e9bdc 100644
--- a/src/utils/SkLua.cpp
+++ b/src/utils/SkLua.cpp
@@ -1906,7 +1906,7 @@ static int lsk_newTypeface(lua_State* L) {
}
static int lsk_newRasterSurface(lua_State* L) {
- int width = lua2int_def(L, 2, 0);
+ int width = lua2int_def(L, 1, 0);
int height = lua2int_def(L, 2, 0);
SkImageInfo info = SkImageInfo::MakeN32Premul(width, height);
SkSurface* surface = SkSurface::NewRaster(info);