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

tholy-guest at alioth.debian.org tholy-guest at alioth.debian.org
Tue Feb 17 14:46:38 UTC 2009


Author: tholy-guest
Date: 2009-02-17 14:46:38 +0000 (Tue, 17 Feb 2009)
New Revision: 895

Modified:
   tuxmath/trunk/src/SDL_extras.c
   tuxmath/trunk/src/setup.c
Log:
Small fixes when using Pango (will not fix any known bug).


Modified: tuxmath/trunk/src/SDL_extras.c
===================================================================
--- tuxmath/trunk/src/SDL_extras.c	2009-02-17 14:12:47 UTC (rev 894)
+++ tuxmath/trunk/src/SDL_extras.c	2009-02-17 14:46:38 UTC (rev 895)
@@ -476,6 +476,7 @@
       SDLPango_SetDefaultColor(context, MATRIX_TRANSPARENT_BACK_WHITE_LETTER);
 
     white_letters = SDLPango_CreateSurfaceDraw(context);
+    free(color_matrix);
   }
   else
   {

Modified: tuxmath/trunk/src/setup.c
===================================================================
--- tuxmath/trunk/src/setup.c	2009-02-17 14:12:47 UTC (rev 894)
+++ tuxmath/trunk/src/setup.c	2009-02-17 14:46:38 UTC (rev 895)
@@ -50,6 +50,10 @@
 #include "highscore.h"
 #include "SDL_extras.h"
 
+#ifdef HAVE_LIBSDL_PANGO
+#include "SDL_Pango.h"
+#endif
+
 //#ifdef LINEBREAK
 #include "linewrap.h"
 //#endif




More information about the Tux4kids-commits mailing list