mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-25 19:18:01 +02:00
Allowing RGB instead of just ARGB
This commit is contained in:
parent
b6e14d36f2
commit
100661889d
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue