summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_genmenu.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-07-07 13:49:53 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-07-07 13:49:53 +0000
commit579b92a2f091284839bfa112116ed088dd3b2418 (patch)
treebb17a0226477f5aacb2d0caf5e5b1ec01f91342c /plugins/MirLua/src/m_genmenu.cpp
parenta6849e6952b88ca67f2eac3f1e2adc287246b0a5 (diff)
MirLua:
- added Utf8DecodeA, Utf8DecodeW and Free to m - more correct number to boolean in m_genmenu - version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@14505 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_genmenu.cpp')
-rw-r--r--plugins/MirLua/src/m_genmenu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/MirLua/src/m_genmenu.cpp b/plugins/MirLua/src/m_genmenu.cpp
index 41e30c3a67..57c6938f60 100644
--- a/plugins/MirLua/src/m_genmenu.cpp
+++ b/plugins/MirLua/src/m_genmenu.cpp
@@ -75,7 +75,7 @@ static int lua_ModifyMenuItem(lua_State *L)
static int lua_ShowMenuItem(lua_State *L)
{
HGENMENU hMenuItem = (HGENMENU)lua_touserdata(L, 1);
- bool isShow = lua_toboolean(L, 2) != 0;
+ bool isShow = luaM_toboolean(L, 2);
::Menu_ShowItem(hMenuItem, isShow);
@@ -85,7 +85,7 @@ static int lua_ShowMenuItem(lua_State *L)
static int lua_EnableMenuItem(lua_State *L)
{
HGENMENU hMenuItem = (HGENMENU)lua_touserdata(L, 1);
- bool isEnable = lua_toboolean(L, 2) != 0;
+ bool isEnable = luaM_toboolean(L, 2);
::Menu_EnableItem(hMenuItem, isEnable);
@@ -95,7 +95,7 @@ static int lua_EnableMenuItem(lua_State *L)
static int lua_CheckMenuItem(lua_State *L)
{
HGENMENU hMenuItem = (HGENMENU)lua_touserdata(L, 1);
- bool isChecked = lua_toboolean(L, 2) != 0;
+ bool isChecked = luaM_toboolean(L, 2);
::Menu_SetChecked(hMenuItem, isChecked);