Skip to content

Commit 65c5d17

Browse files
committed
more color fix
1 parent ea4bff1 commit 65c5d17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LuaSTG/LuaSTG/LuaBinding/LW_Color.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ namespace LuaSTGPlus::LuaWrapper
132132
lua_pushnumber(L, (lua_Number)RGB2HSV(p->r, p->g, p->b, p->a).z);
133133
break;
134134
case LuaSTG::ColorMember::m_argb:
135-
lua_pushnumber(L, (lua_Number)((p->color() & 0xFF00FF00) + ((p->color() & 0xFF0000) >> 16) + ((p->color() & 0xFF) << 16)));
135+
lua_pushnumber(L, (lua_Number)((p->a << 24) + (p->r << 16) + (p->g << 8) + p->b));
136136
// lua_pushnumber(L, (lua_Number)p->color());
137137
break;
138138
case LuaSTG::ColorMember::f_ARGB:

0 commit comments

Comments
 (0)