aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleLua.cpp
diff options
context:
space:
mode:
authorGravatar Hal Canary <halcanary@google.com>2017-12-08 10:21:31 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-08 17:16:00 +0000
commitc465d13e6fca5e171bde45d35b2dd43117f4702e (patch)
tree588b2b31ffba95ed8eecb5327cb4335f35c8c1bd /samplecode/SampleLua.cpp
parent4bcef3c40ad8d3a16bbca4ab74fa15256fb4b125 (diff)
resources: orgainize directory.
Should make it easier to ask just for images. Change-Id: If821743dc924c4bfbc6b2b2d29b14affde7b3afd Reviewed-on: https://skia-review.googlesource.com/82684 Commit-Queue: Hal Canary <halcanary@google.com> Reviewed-by: Leon Scroggins <scroggo@google.com>
Diffstat (limited to 'samplecode/SampleLua.cpp')
-rw-r--r--samplecode/SampleLua.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/samplecode/SampleLua.cpp b/samplecode/SampleLua.cpp
index 99c5525b85..848a942e00 100644
--- a/samplecode/SampleLua.cpp
+++ b/samplecode/SampleLua.cpp
@@ -18,8 +18,8 @@ extern "C" {
#include "lauxlib.h"
}
-//#define LUA_FILENAME "test.lua"
-#define LUA_FILENAME "slides.lua"
+//#define LUA_FILENAME "lua/test.lua"
+#define LUA_FILENAME "lua/slides.lua"
static const char gDrawName[] = "onDrawContent";
static const char gClickName[] = "onClickHandler";
@@ -44,7 +44,7 @@ public:
~LuaView() override { delete fLua; }
void setImageFilename(lua_State* L) {
- SkString str = GetResourcePath("mandrill_256.png");
+ SkString str = GetResourcePath("images/mandrill_256.png");
lua_getglobal(L, "setImageFilename");
if (lua_isfunction(L, -1)) {