mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
fix(ui): properly load alpha value in FrameScript_GetColor
This commit is contained in:
parent
c50582fc6f
commit
5c518bb41a
@ -449,7 +449,7 @@ void FrameScript_GetColor(lua_State* L, int32_t idx, CImVector& color) {
|
||||
|
||||
float a = 1.0f;
|
||||
if (lua_isnumber(L, idx + 3)) {
|
||||
a = lua_tonumber(L, idx + 2);
|
||||
a = lua_tonumber(L, idx + 3);
|
||||
a = std::max(0.0f, std::min(a, 1.0f));
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user