From 66037b4de6baded89f0bb072cd9f33c103f45dd1 Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Thu, 20 Jan 2011 09:59:45 +0000 Subject: add textstyle in gc; fix hz_cache memory leak issue; fix selection issue in radiobox. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1250 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/rtgui/widgets/widget.c | 1 + 1 file changed, 1 insertion(+) (limited to 'components/rtgui/widgets/widget.c') diff --git a/components/rtgui/widgets/widget.c b/components/rtgui/widgets/widget.c index ecdabf5bdc..304e59b86c 100644 --- a/components/rtgui/widgets/widget.c +++ b/components/rtgui/widgets/widget.c @@ -32,6 +32,7 @@ static void _rtgui_widget_constructor(rtgui_widget_t *widget) widget->gc.foreground = default_foreground; widget->gc.background = default_background; widget->gc.font = rtgui_font_default(); + widget->gc.textstyle = RTGUI_TEXTSTYLE_NORMAL; widget->gc.textalign = RTGUI_ALIGN_LEFT | RTGUI_ALIGN_TOP; #ifndef RTGUI_USING_SMALL_SIZE widget->align = RTGUI_ALIGN_LEFT | RTGUI_ALIGN_TOP; -- cgit v1.3.1