summaryrefslogtreecommitdiff
path: root/rtgui/common
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2010-01-25 23:38:47 +0000
committerbernard.xiong <[email protected]>2010-01-25 23:38:47 +0000
commit0c817b1d16c2edb745704955005e71448caded5e (patch)
tree991b43e5d9575cf1fe5da4e63c58e28f520fc58d /rtgui/common
parent9fb4908710ea9ddca5fd7d6cdd4cf656e98b8bbb (diff)
move the onbutton call back to the end of event handler in button widget.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@337 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'rtgui/common')
-rw-r--r--rtgui/common/rtgui_theme.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/rtgui/common/rtgui_theme.c b/rtgui/common/rtgui_theme.c
index 15f9b301a3..28d5215573 100644
--- a/rtgui/common/rtgui_theme.c
+++ b/rtgui/common/rtgui_theme.c
@@ -282,10 +282,9 @@ void rtgui_theme_draw_win(struct rtgui_topwin* win)
{
RTGUI_WIDGET_FOREGROUND(RTGUI_WIDGET(win->title)) = RTGUI_RGB(212, 208, 200);
}
- // rtgui_dc_fill_rect(dc, &rect);
rect.x1 += 4;
- rect.y1 += 2;
+ rect.y1 += 2; rect.y2 = rect.y1 + WINTITLE_CB_HEIGHT;
rtgui_dc_draw_text(dc, rtgui_wintitle_get_title(win->title), &rect);
if (win->flag & WINTITLE_CLOSEBOX)
@@ -321,7 +320,7 @@ void rtgui_theme_draw_button(rtgui_button_t* btn)
/* get widget rect */
rtgui_widget_get_rect(RTGUI_WIDGET(btn), &rect);
- /* get forecolor */
+ /* get foreground color */
fc = RTGUI_WIDGET_FOREGROUND(RTGUI_WIDGET(btn));
/* fill button rect with background color */