[Tux4kids-commits] r1122 - tuxmath/trunk/src

Bolesław Kulbabiński bolekk-guest at alioth.debian.org
Tue Jun 30 23:30:41 UTC 2009


Author: bolekk-guest
Date: 2009-06-30 23:30:41 +0000 (Tue, 30 Jun 2009)
New Revision: 1122

Modified:
   tuxmath/trunk/src/setup.c
   tuxmath/trunk/src/titlescreen.c
Log:
corrected two small mistakes

Modified: tuxmath/trunk/src/setup.c
===================================================================
--- tuxmath/trunk/src/setup.c	2009-06-30 22:09:57 UTC (rev 1121)
+++ tuxmath/trunk/src/setup.c	2009-06-30 23:30:41 UTC (rev 1122)
@@ -463,6 +463,10 @@
     {
       debug_status |= debug_highscore;
     }
+    else if (strcmp(argv[i], "--debug-options") == 0)
+    {
+      debug_status |= debug_options;
+    }
     else
     /* TODO try to match unrecognized strings to config file names */
     {

Modified: tuxmath/trunk/src/titlescreen.c
===================================================================
--- tuxmath/trunk/src/titlescreen.c	2009-06-30 22:09:57 UTC (rev 1121)
+++ tuxmath/trunk/src/titlescreen.c	2009-06-30 23:30:41 UTC (rev 1122)
@@ -168,13 +168,13 @@
   if(screen->flags & SDL_FULLSCREEN)
   {
     if(fs_bkg != NULL)
-      free(fs_bkg);
+      SDL_FreeSurface(fs_bkg);
     fs_bkg = new_bkg;
   }
   else
   {
     if(win_bkg != NULL)
-      free(win_bkg);
+      SDL_FreeSurface(win_bkg);
     win_bkg = new_bkg;
   }
 }




More information about the Tux4kids-commits mailing list