diff options
| author | bernard.xiong <[email protected]> | 2011-01-20 09:59:45 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2011-01-20 09:59:45 +0000 |
| commit | 66037b4de6baded89f0bb072cd9f33c103f45dd1 (patch) | |
| tree | c902df0ec8cdeb03d7af281d882f44260f399644 /components/rtgui/widgets/widget.c | |
| parent | 17b7ae81e247f3b7c82dc6fbcb294583eeee3cfd (diff) | |
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
Diffstat (limited to 'components/rtgui/widgets/widget.c')
| -rw-r--r-- | components/rtgui/widgets/widget.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |
