Merge pull request #12489 from Jamiras/cheevos_challenge_indicators

(cheevos) address travis errors
This commit is contained in:
Autechre 2021-06-05 17:37:06 +02:00 committed by GitHub
commit f57fcd4048
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,8 @@
#include "../gfx_display.h"
#include "../gfx_widgets.h"
#include "../cheevos/cheevos.h"
#ifdef HAVE_THREADS
#define SLOCK_LOCK(x) slock_lock(x)
#define SLOCK_UNLOCK(x) slock_unlock(x)
@ -196,7 +198,7 @@ static void gfx_widget_leaderboard_display_frame(void* data, void* userdata)
void gfx_widgets_set_leaderboard_display(unsigned id, const char* value)
{
int i;
unsigned i;
gfx_widget_leaderboard_display_state_t *state = &p_w_leaderboard_display_st;
SLOCK_LOCK(state->array_lock);
@ -243,13 +245,13 @@ void gfx_widgets_set_leaderboard_display(unsigned id, const char* value)
void gfx_widgets_set_challenge_display(unsigned id, const char* badge)
{
int i;
unsigned i;
gfx_widget_leaderboard_display_state_t* state = &p_w_leaderboard_display_st;
/* important - this must be done outside the lock because it has the potential to need to
* lock the video thread, which may be waiting for the popup queue lock to render popups */
uintptr_t badge_id = badge ? rcheevos_get_badge_texture(badge, 0) : NULL;
uintptr_t old_badge_id = NULL;
uintptr_t badge_id = badge ? rcheevos_get_badge_texture(badge, 0) : 0;
uintptr_t old_badge_id = 0;
SLOCK_LOCK(state->array_lock);