Minor change for compatability with Singe 1.x. Three-number background colors default to being transparent now.
This commit is contained in:
parent
fe607e6682
commit
b14335a736
1 changed files with 2 additions and 2 deletions
|
@ -359,7 +359,7 @@ int32_t apiColorBackground(lua_State *L) {
|
|||
if (lua_isnumber(L, 4)) {
|
||||
d = lua_tonumber(L, 4); _global.colorBackground.a = (byte)d;
|
||||
} else {
|
||||
_global.colorBackground.a = (byte)255;
|
||||
_global.colorBackground.a = (byte)0; // Default to transparent.
|
||||
}
|
||||
}
|
||||
result = true;
|
||||
|
@ -396,7 +396,7 @@ int32_t apiColorForeground(lua_State *L) {
|
|||
if (lua_isnumber(L, 4)) {
|
||||
d = lua_tonumber(L, 4); _global.colorForeground.a = (byte)d;
|
||||
} else {
|
||||
_global.colorForeground.a = (byte)255;
|
||||
_global.colorForeground.a = (byte)255; // Default to opaque.
|
||||
}
|
||||
}
|
||||
result = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue