added highlighting all high score entries of the current player
authorHolger Schemel <info@artsoft.org>
Fri, 5 Apr 2024 16:13:23 +0000 (18:13 +0200)
committerHolger Schemel <info@artsoft.org>
Fri, 5 Apr 2024 16:13:25 +0000 (18:13 +0200)
src/screens.c

index adeebb132af4e4117bc8d028af9ee42403b3ecb6..a146ba6113f4310d0ae0390dc8f0cbc15272f394 100644 (file)
@@ -4721,6 +4721,10 @@ static void drawChooseTreeText(TreeInfo *ti, int y, boolean active)
     char *pos_text = getHallOfFameRankText(pos, 3);
     int i;
 
+    // highlight all high score entries of the current player
+    if (strEqual(scores.entry[pos].name, setup.player_name))
+      font_nr2 = FONT_TEXT_2_ACTIVE;
+
     DrawText(startx1, starty, pos_text, font_nr1);
 
     for (i = 0; i < num_dots; i++)