[Tux4kids-commits] r1608 - tuxmath/trunk/src
David Bruce
dbruce-guest at alioth.debian.org
Mon Oct 26 16:55:47 UTC 2009
Author: dbruce-guest
Date: 2009-10-26 16:55:47 +0000 (Mon, 26 Oct 2009)
New Revision: 1608
Modified:
tuxmath/trunk/src/fileops_media.c
tuxmath/trunk/src/highscore.c
tuxmath/trunk/src/menu.c
tuxmath/trunk/src/network.c
Log:
Investigating render times for svg scaling
Modified: tuxmath/trunk/src/fileops_media.c
===================================================================
--- tuxmath/trunk/src/fileops_media.c 2009-10-26 16:55:42 UTC (rev 1607)
+++ tuxmath/trunk/src/fileops_media.c 2009-10-26 16:55:47 UTC (rev 1608)
@@ -176,7 +176,6 @@
}
}
-
glyph_offset = 0;
#ifdef REPLACE_WAVESCORE
Modified: tuxmath/trunk/src/highscore.c
===================================================================
--- tuxmath/trunk/src/highscore.c 2009-10-26 16:55:42 UTC (rev 1607)
+++ tuxmath/trunk/src/highscore.c 2009-10-26 16:55:47 UTC (rev 1608)
@@ -1013,19 +1013,18 @@
Uint32 start = 0;
Uint32 timer = 0;
int servers_found = 0;
+ sprite* Tux = NULL;
+ DEBUGMSG(debug_lan, "\nEnter detecting_servers()\n");
- sprite* Tux = LoadSprite("tux/bigtux", IMG_ALPHA);
+ /* FIXME it takes several seconds to load this sprite on a */
+ /* Dell Mini 9 netbook, probably longer on many school */
+ /* machines. Perhaps we should load this ahead of time... */
+ Tux = LoadSprite("tux/bigtux", IMG_ALPHA);
-
/* We need to get Unicode vals from SDL keysyms */
SDL_EnableUNICODE(SDL_ENABLE);
-#ifdef TUXMATH_DEBUG
- fprintf(stderr, "\nEnter detecting_servers()\n" );
-#endif
-
-
/* Draw background: */
if (current_bkg())
SDL_BlitSurface(current_bkg(), NULL, screen, NULL);
Modified: tuxmath/trunk/src/menu.c
===================================================================
--- tuxmath/trunk/src/menu.c 2009-10-26 16:55:42 UTC (rev 1607)
+++ tuxmath/trunk/src/menu.c 2009-10-26 16:55:47 UTC (rev 1608)
@@ -1160,9 +1160,6 @@
if(stop)
break;
-/* FIXME look at this more closely - the sprites have not been displaying */
-/* except for the default frame: */
-
if(!stop && frame_counter % 5 == 0 && loc >= 0 && loc < items)
{
tmp_sprite = menu->submenu[menu->first_entry + loc]->icon;
Modified: tuxmath/trunk/src/network.c
===================================================================
--- tuxmath/trunk/src/network.c 2009-10-26 16:55:42 UTC (rev 1607)
+++ tuxmath/trunk/src/network.c 2009-10-26 16:55:47 UTC (rev 1608)
@@ -86,7 +86,7 @@
out->address.port = bcast_ip.port;
out->len = strlen("TUXMATH_CLIENT") + 1;
- //Here we will need to send every few sec onds until we hear back from server
+ //Here we will need to send every few seconds until we hear back from server
//and get its ip address: IPaddress bcast_ip;
printf("\nAutodetecting TuxMath servers:");
fflush(stdout);
More information about the Tux4kids-commits
mailing list