[Tux4kids-commits] r754 - tuxmath/trunk/src
cheezmeister-guest at alioth.debian.org
cheezmeister-guest at alioth.debian.org
Sun Sep 21 02:43:52 UTC 2008
Author: cheezmeister-guest
Date: 2008-09-21 02:43:51 +0000 (Sun, 21 Sep 2008)
New Revision: 754
Modified:
tuxmath/trunk/src/highscore.c
Log:
Score highlighting for latest score--still confused by other scores of
the same amount, highlights them all.
Modified: tuxmath/trunk/src/highscore.c
===================================================================
--- tuxmath/trunk/src/highscore.c 2008-09-13 03:18:47 UTC (rev 753)
+++ tuxmath/trunk/src/highscore.c 2008-09-21 02:43:51 UTC (rev 754)
@@ -286,9 +286,12 @@
/* Clear out old surfaces and update: */
if (score_surfs[i]) /* this should not happen! */
SDL_FreeSurface(score_surfs[i]);
+
+ if (HS_Score(diff_level, i) == Opts_LastScore() && frame % 5 < 2)
+ score_surfs[i] = BlackOutline(N_(score_strings[i]), player_font, &yellow);
+ else
+ score_surfs[i] = BlackOutline(N_(score_strings[i]), player_font, &white);
- score_surfs[i] = BlackOutline(N_(score_strings[i]), player_font, &white);
-
/* Get out if BlackOutline() fails: */
if (!score_surfs[i])
continue;
More information about the Tux4kids-commits
mailing list