From b14335a7361eb6edc185ae01603f96c68ae7b12b Mon Sep 17 00:00:00 2001 From: Scott Duensing Date: Wed, 25 Mar 2020 14:14:19 -0500 Subject: [PATCH] Minor change for compatability with Singe 1.x. Three-number background colors default to being transparent now. --- singe/singe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/singe/singe.c b/singe/singe.c index 328475c9d..8a1195b41 100644 --- a/singe/singe.c +++ b/singe/singe.c @@ -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;