aboutsummaryrefslogtreecommitdiff
path: root/src/lua/graphics
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-07-31 12:19:22 +0800
committerchai <chaifix@163.com>2018-07-31 12:19:22 +0800
commita5bb008eb554daf26f55b5fe43b0fa12ffb15973 (patch)
tree1eac93471b855ef878d3fd6a4614cfacb1ea6464 /src/lua/graphics
parent7ac86950d3a89a996974e8406ee88e8f5f44187d (diff)
*update
Diffstat (limited to 'src/lua/graphics')
-rw-r--r--src/lua/graphics/luaopen_Image.cpp2
-rw-r--r--src/lua/graphics/luaopen_graphics.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/graphics/luaopen_Image.cpp b/src/lua/graphics/luaopen_Image.cpp
index 5fc9aea..546e6b1 100644
--- a/src/lua/graphics/luaopen_Image.cpp
+++ b/src/lua/graphics/luaopen_Image.cpp
@@ -12,7 +12,7 @@ namespace lua
static inline Texture* checkTexture(lua_State* L)
{
Proxy* proxy = (Proxy*)luax_checktype(L, 1, TYPE_IMAGE);
- if (proxy != 0 && proxy != nullptr)
+ if (proxy != nullptr)
return (Texture*)proxy->object;
return nullptr;
}
diff --git a/src/lua/graphics/luaopen_graphics.cpp b/src/lua/graphics/luaopen_graphics.cpp
index a394cc3..2aa68e8 100644
--- a/src/lua/graphics/luaopen_graphics.cpp
+++ b/src/lua/graphics/luaopen_graphics.cpp
@@ -500,7 +500,7 @@ namespace lua
{"circle", l_drawCircle},
{"triangle", l_drawTriangle},
{"polygon", l_drawPolygon},
- //
+ // quit window
{"destroy", l_destroy},
{0, 0}
};