Minor change for compatability with Singe 1.x. Three-number background colors default to being transparent now.

This commit is contained in:
Scott Duensing 2020-03-25 14:14:19 -05:00
parent fe607e6682
commit b14335a736

View file

@ -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;