Skip to content

Commit

Permalink
Change CColor to be opaque (alpha=255) instead of transparent (alph…
Browse files Browse the repository at this point in the history
…a=0) by default.
  • Loading branch information
Jarod42 committed Feb 24, 2024
1 parent f584f2c commit 910c3e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/include/color.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ struct lua_State;
class CColor
{
public:
CColor() : R(0), G(0), B(0), A(0) {}
CColor() : R(0), G(0), B(0), A(255) {}
CColor(unsigned char r, unsigned char g, unsigned char b,
unsigned char a = 0) : R(r), G(g), B(b), A(a) {}
unsigned char a = 255) : R(r), G(g), B(b), A(a) {}
CColor(const CColor &color) = default;

void Parse(lua_State *l, int index = -1);
Expand Down

0 comments on commit 910c3e9

Please sign in to comment.