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

cheezmeister-guest at alioth.debian.org cheezmeister-guest at alioth.debian.org
Wed Mar 25 02:03:43 UTC 2009


Author: cheezmeister-guest
Date: 2009-03-25 02:03:42 +0000 (Wed, 25 Mar 2009)
New Revision: 946

Modified:
   tuxmath/trunk/src/SDL_extras.c
Log:
Fixed warnings for SDLPango_Matrix initizlizations

Modified: tuxmath/trunk/src/SDL_extras.c
===================================================================
--- tuxmath/trunk/src/SDL_extras.c	2009-03-23 11:01:57 UTC (rev 945)
+++ tuxmath/trunk/src/SDL_extras.c	2009-03-25 02:03:42 UTC (rev 946)
@@ -805,13 +805,13 @@
   }
   else
   {
-    SDLPango_Matrix colormatrix = 
-    {
-      col->r,  col->r,  0,  0,
-      col->g,  col->g,  0,  0,
-      col->b,  col->b,  0,  0,
-      0,      255,      0,  0,
-    };
+    SDLPango_Matrix colormatrix =
+    {{
+      {col->r,  col->r,  0,  0},
+      {col->g,  col->g,  0,  0},
+      {col->b,  col->b,  0,  0},
+      {0,      255,      0,  0}
+    }};
     Set_SDL_Pango_Font_Size(size);
     SDLPango_SetDefaultColor(context, &colormatrix );
     SDLPango_SetText(context, t, -1);
@@ -847,13 +847,13 @@
   }
   else
   {
-    SDLPango_Matrix colormatrix = 
-    {
-      col->r,  col->r,  0,  0,
-      col->g,  col->g,  0,  0,
-      col->b,  col->b,  0,  0,
-      0,      255,      0,  0,
-    };
+    SDLPango_Matrix colormatrix =
+    {{
+      {col->r,  col->r,  0,  0},
+      {col->g,  col->g,  0,  0},
+      {col->b,  col->b,  0,  0},
+      {0,      255,      0,  0}
+    }};
     Set_SDL_Pango_Font_Size(size);
     SDLPango_SetDefaultColor(context, &colormatrix );
     SDLPango_SetText(context, t, -1);




More information about the Tux4kids-commits mailing list