Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1357)

Unified Diff: src/utils/SkLua.cpp

Issue 686853005: update slides (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « resources/slides_utils.lua ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « resources/slides_utils.lua ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698