From e618a98959c8ecd52fbf5e599fc191c274af48f3 Mon Sep 17 00:00:00 2001 From: bernie Date: Wed, 22 Mar 2006 09:50:11 +0000 Subject: [PATCH] Don't use C99 stuff. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@582 38d2e660-2303-0410-9eaa-f027e97ec537 --- gfx/text_format.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gfx/text_format.c b/gfx/text_format.c index 1ff86be7..54dab7c8 100755 --- a/gfx/text_format.c +++ b/gfx/text_format.c @@ -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; } -- 2.25.1