Fix djui_hud_get_color()

This commit is contained in:
Agent X 2024-01-04 15:10:32 -05:00
parent b347a582b5
commit 236231ded1
1 changed files with 6 additions and 1 deletions

View File

@ -29,6 +29,7 @@ static enum HudUtilsFilter sFilter = FILTER_NEAREST;
static enum DjuiFontType sFont = FONT_NORMAL; static enum DjuiFontType sFont = FONT_NORMAL;
static struct HudUtilsRotation sRotation = { 0, 0, 0 }; static struct HudUtilsRotation sRotation = { 0, 0, 0 };
static struct DjuiColor sColor = { 255, 255, 255, 255 }; static struct DjuiColor sColor = { 255, 255, 255, 255 };
static struct DjuiColor sRefColor = { 255, 255, 255, 255 };
f32 gDjuiHudUtilsZ = 0; f32 gDjuiHudUtilsZ = 0;
u8 gDjuiHudLockMouse = false; u8 gDjuiHudLockMouse = false;
@ -173,7 +174,11 @@ void djui_hud_set_font(enum DjuiFontType fontType) {
} }
struct DjuiColor* djui_hud_get_color(void) { struct DjuiColor* djui_hud_get_color(void) {
return &sColor; sRefColor.r = sColor.r;
sRefColor.g = sColor.g;
sRefColor.b = sColor.b;
sRefColor.a = sColor.a;
return &sRefColor;
} }
void djui_hud_set_color(u8 r, u8 g, u8 b, u8 a) { void djui_hud_set_color(u8 r, u8 g, u8 b, u8 a) {