diff options
author | chai <chaifix@163.com> | 2018-09-10 19:47:21 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-09-10 19:47:21 +0800 |
commit | d5cda5fddc078fa5fdb93805785fc707f050d8e7 (patch) | |
tree | 46224cbddb79959cbc26f045c757a9dde7ebb23b /src/lua/modules/graphics/graphics.cpp | |
parent | 435e17c1a81fa74a45465829bd42d36e7fa24406 (diff) |
*update
Diffstat (limited to 'src/lua/modules/graphics/graphics.cpp')
-rw-r--r-- | src/lua/modules/graphics/graphics.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/modules/graphics/graphics.cpp b/src/lua/modules/graphics/graphics.cpp index d374f51..679b820 100644 --- a/src/lua/modules/graphics/graphics.cpp +++ b/src/lua/modules/graphics/graphics.cpp @@ -260,7 +260,7 @@ namespace lua return 0; } - static int l_palette(lua_State * L) + static int l_getColor(lua_State * L) { luax_pushnumber(L, context.curRenderColor.r); luax_pushnumber(L, context.curRenderColor.g); @@ -541,7 +541,7 @@ namespace lua { "clear", l_clear }, { "draw", l_draw }, { "setColor", l_setColor }, - { "palette", l_palette }, + { "getColor", l_getColor }, { "present", l_present }, /* font */ { "box", l_box }, |