diff --git a/src/gui/lua/luainstance.cpp b/src/gui/lua/luainstance.cpp index 5e6a49533..a385ddceb 100644 --- a/src/gui/lua/luainstance.cpp +++ b/src/gui/lua/luainstance.cpp @@ -176,23 +176,23 @@ static void set_lua_variables(lua_State *L) /* list of colors, exported e.g. as COL['INFOBAR_SHADOW'] */ static table_key_u colorlist[] = { - { "COL_WHITE", MAGIC_COLOR | (COL_WHITE) }, - { "COL_BLACK", MAGIC_COLOR | (COL_BLACK) }, - { "COL_DARK_RED", MAGIC_COLOR | (COL_DARK_RED) }, - { "COL_RED", MAGIC_COLOR | (COL_RED) }, - { "COL_LIGHT_RED", MAGIC_COLOR | (COL_LIGHT_RED) }, - { "COL_DARK_GREEN", MAGIC_COLOR | (COL_DARK_GREEN) }, - { "COL_GREEN", MAGIC_COLOR | (COL_GREEN) }, - { "COL_LIGHT_GREEN", MAGIC_COLOR | (COL_LIGHT_GREEN) }, - { "COL_DARK_YELLOW", MAGIC_COLOR | (COL_DARK_YELLOW) }, - { "COL_YELLOW", MAGIC_COLOR | (COL_YELLOW) }, - { "COL_LIGHT_YELLOW", MAGIC_COLOR | (COL_LIGHT_YELLOW) }, - { "COL_DARK_BLUE", MAGIC_COLOR | (COL_DARK_BLUE) }, - { "COL_BLUE", MAGIC_COLOR | (COL_BLUE) }, - { "COL_LIGHT_BLUE", MAGIC_COLOR | (COL_LIGHT_BLUE) }, - { "COL_DARK_GRAY", MAGIC_COLOR | (COL_DARK_GRAY) }, - { "COL_GRAY", MAGIC_COLOR | (COL_GRAY) }, - { "COL_LIGHT_GRAY", MAGIC_COLOR | (COL_LIGHT_GRAY) }, + { "WHITE", (lua_Unsigned)(COL_WHITE) }, + { "BLACK", (lua_Unsigned)(COL_BLACK) }, + { "DARK_RED", (lua_Unsigned)(COL_DARK_RED) }, + { "RED", (lua_Unsigned)(COL_RED) }, + { "LIGHT_RED", (lua_Unsigned)(COL_LIGHT_RED) }, + { "DARK_GREEN", (lua_Unsigned)(COL_DARK_GREEN) }, + { "GREEN", (lua_Unsigned)(COL_GREEN) }, + { "LIGHT_GREEN", (lua_Unsigned)(COL_LIGHT_GREEN) }, + { "DARK_YELLOW", (lua_Unsigned)(COL_DARK_YELLOW) }, + { "YELLOW", (lua_Unsigned)(COL_YELLOW) }, + { "LIGHT_YELLOW", (lua_Unsigned)(COL_LIGHT_YELLOW) }, + { "DARK_BLUE", (lua_Unsigned)(COL_DARK_BLUE) }, + { "BLUE", (lua_Unsigned)(COL_BLUE) }, + { "LIGHT_BLUE", (lua_Unsigned)(COL_LIGHT_BLUE) }, + { "DARK_GRAY", (lua_Unsigned)(COL_DARK_GRAY) }, + { "GRAY", (lua_Unsigned)(COL_GRAY) }, + { "LIGHT_GRAY", (lua_Unsigned)(COL_LIGHT_GRAY) }, { "COLORED_EVENTS_CHANNELLIST", MAGIC_COLOR | (COL_COLORED_EVENTS_CHANNELLIST) }, { "COLORED_EVENTS_INFOBAR", MAGIC_COLOR | (COL_COLORED_EVENTS_INFOBAR) },