Don't use C99 stuff.
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 22 Mar 2006 09:50:11 +0000 (09:50 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 22 Mar 2006 09:50:11 +0000 (09:50 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@582 38d2e660-2303-0410-9eaa-f027e97ec537

gfx/text_format.c

index 1ff86be74df86c731660cdba8c4cac960da95863..54dab7c866e373e8c7a6d1c596237b50ace63aee 100755 (executable)
@@ -15,6 +15,9 @@
 
 /*#*
  *#* $Log$
+ *#* Revision 1.8  2006/03/22 09:50:11  bernie
+ *#* Don't use C99 stuff.
+ *#*
  *#* Revision 1.7  2006/03/20 17:51:55  bernie
  *#* Cleanups.
  *#*
@@ -267,7 +270,9 @@ int PGM_FUNC(text_vwidthf)(
                return PGM_FUNC(vsprintf)(NULL, fmt, ap) * bm->font->width;
        else
        {
-               struct TextWidthData twd = { bm, 0 };
+               struct TextWidthData twd;
+               twd.bitmap = bm;
+               twd.width = 0;
                _formatted_write(fmt, (void (*)(char, void *))text_charWidth, &twd, ap);
                return twd.width;
        }