1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-25 11:08:02 +02:00

Allowing RGB instead of just ARGB

This commit is contained in:
Brian Fiete 2020-08-09 07:36:48 -07:00
parent b6e14d36f2
commit 100661889d

View file

@ -293,6 +293,9 @@ namespace IDE
void GetColor(String name, ref Color color) void GetColor(String name, ref Color color)
{ {
sd.Get(name, ref *(int32*)&color); sd.Get(name, ref *(int32*)&color);
if ((color & 0xFF000000) == 0)
color |= 0xFF000000;
} }
GetColor("Text", ref mText); GetColor("Text", ref mText);