Every global has to be named uniquely for Griffin targets

This commit is contained in:
twinaphex 2020-03-12 17:00:13 +01:00
parent 76f0c14289
commit 28eec1489a
2 changed files with 5 additions and 5 deletions

View File

@ -47,7 +47,7 @@ struct gfx_widget_screenshot_state
typedef struct gfx_widget_screenshot_state gfx_widget_screenshot_state_t;
static gfx_widget_screenshot_state_t p_state = {
static gfx_widget_screenshot_state_t p_w_screenshot_st = {
0.0f,
0,
0,
@ -69,7 +69,7 @@ static gfx_widget_screenshot_state_t p_state = {
static gfx_widget_screenshot_state_t* gfx_widget_screenshot_get_ptr(void)
{
return &p_state;
return &p_w_screenshot_st;
}
static void gfx_widget_screenshot_fadeout(void *userdata)

View File

@ -65,14 +65,14 @@ struct gfx_widget_volume_state
typedef struct gfx_widget_volume_state gfx_widget_volume_state_t;
static gfx_widget_volume_state_t p_state = {
static gfx_widget_volume_state_t p_w_volume_st = {
0.0f,
1.0f,
0.0f,
0.0f,
0.0f,
(uintptr_t) &p_state,
(uintptr_t) &p_w_volume_st,
false,
0,
@ -88,7 +88,7 @@ static gfx_widget_volume_state_t p_state = {
gfx_widget_volume_state_t* gfx_widget_volume_get_ptr(void)
{
return &p_state;
return &p_w_volume_st;
}
static void gfx_widget_volume_frame(void* data)