X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=score.c;h=07c52a55c4d051afc9aea5510a3b079235fc1066;hb=8c4076c17519e9f5a2bfc45fe1b885d9ce806b54;hp=6823b575a7961248cd6fe905f643de7a8b7dc343;hpb=88a9e026caed5568363cefb7d49308b875dc5e4a;p=vor.git diff --git a/score.c b/score.c index 6823b57..07c52a5 100644 --- a/score.c +++ b/score.c @@ -157,10 +157,12 @@ show_score(void) } void -display_scores(SDL_Surface *s, uint32_t x, uint32_t y) +display_scores(uint32_t x, uint32_t y) { char t[1024]; int i,h = font_height(); + int display_cursor = (SDL_GetTicks() / CURSOR_BLINK_TIME) % 2; + font_write(x+30, y, "High scores"); y += h; @@ -172,7 +174,7 @@ display_scores(SDL_Surface *s, uint32_t x, uint32_t y) font_write(x, y, t); snprintscore(t, 1024, g_scores[g_easy][i].score); font_write(x+50, y, t); - if(i == cur_score) snprintf(t, 1024, "%s_", g_scores[g_easy][i].name); + if(display_cursor && i == cur_score) snprintf(t, 1024, "%s_", g_scores[g_easy][i].name); else snprintf(t, 1024, "%s", g_scores[g_easy][i].name); font_write(x+180, y, t); }