| Index: src/utils/SkLua.cpp
|
| diff --git a/src/utils/SkLua.cpp b/src/utils/SkLua.cpp
|
| index 967233d21b379ebfd3437d1a1c7dcbae52ff02df..b12e3e9bdc357a36ebbf77925865c7600c3f5b5b 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);
|
|
|