mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 00:11:08 +02:00
CLuaInstance: Fix commit 79b8a95524
- Use return value from checkMagicMask() for color
Origin commit data
------------------
Branch: ni/coolstream
Commit: a7790ce049
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-01-01 (Fri, 01 Jan 2016)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -104,9 +104,9 @@ int CLuaInstCCWindow::CCWindowNew(lua_State *L)
|
||||
tableLookup(L, "btnYellow", btnYellow);
|
||||
tableLookup(L, "btnBlue", btnBlue);
|
||||
|
||||
checkMagicMask(color_frame);
|
||||
checkMagicMask(color_body);
|
||||
checkMagicMask(color_shadow);
|
||||
color_frame = checkMagicMask(color_frame);
|
||||
color_body = checkMagicMask(color_body);
|
||||
color_shadow = checkMagicMask(color_shadow);
|
||||
|
||||
bool show_header = true;
|
||||
if (!tableLookup(L, "show_header", show_header)) {
|
||||
@@ -227,15 +227,15 @@ int CLuaInstCCWindow::CCWindowSetWindowColor(lua_State *L)
|
||||
|
||||
lua_Unsigned color;
|
||||
if (tableLookup(L, "color_frame" , color)) {
|
||||
checkMagicMask(color);
|
||||
color = checkMagicMask(color);
|
||||
D->w->setColorFrame(color);
|
||||
}
|
||||
if (tableLookup(L, "color_body" , color)) {
|
||||
checkMagicMask(color);
|
||||
color = checkMagicMask(color);
|
||||
D->w->setColorBody(color);
|
||||
}
|
||||
if (tableLookup(L, "color_shadow" , color)) {
|
||||
checkMagicMask(color);
|
||||
color = checkMagicMask(color);
|
||||
D->w->setColorShadow(color);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user