summaryrefslogtreecommitdiff
path: root/components/rtgui/widgets
diff options
context:
space:
mode:
author[email protected] <[email protected]>2010-06-01 00:07:59 +0000
committer[email protected] <[email protected]>2010-06-01 00:07:59 +0000
commit3a13964efa13c2d28936cb341da672c48d5658f6 (patch)
treea3e42cdb85bfd01fd18faedf2548c86a0458b946 /components/rtgui/widgets
parenta1ee019309d171f9dc641c7ef09d545a49edc1a1 (diff)
move dc operations as dc engine.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@756 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/rtgui/widgets')
-rw-r--r--components/rtgui/widgets/widget.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/rtgui/widgets/widget.c b/components/rtgui/widgets/widget.c
index f6edea7338..2fe6a5101c 100644
--- a/components/rtgui/widgets/widget.c
+++ b/components/rtgui/widgets/widget.c
@@ -30,7 +30,9 @@ static void _rtgui_widget_constructor(rtgui_widget_t *widget)
widget->gc.background = default_background;
widget->gc.font = rtgui_font_default();
widget->gc.textalign = RTGUI_ALIGN_LEFT | RTGUI_ALIGN_TOP;
+#ifndef RTGUI_USING_SMALL_SIZE
widget->align = RTGUI_ALIGN_LEFT | RTGUI_ALIGN_TOP;
+#endif
/* set parent and toplevel root */
widget->parent = RT_NULL;