diff options
| author | [email protected] <[email protected]> | 2011-06-05 15:19:19 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2011-06-05 15:19:19 +0000 |
| commit | db9e590b90fc8f01d708f7f67190c114fb1ef6ac (patch) | |
| tree | 9e1dc68b27ba77627789099be5c127199656b3f0 /components/rtgui/widgets/button.c | |
| parent | bbf68d15e513d4799f651acd4fd9f88fe3a03ffd (diff) | |
add multi-text view widget.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1455 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/rtgui/widgets/button.c')
| -rw-r--r-- | components/rtgui/widgets/button.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/components/rtgui/widgets/button.c b/components/rtgui/widgets/button.c index 827590f498..9d28221b8a 100644 --- a/components/rtgui/widgets/button.c +++ b/components/rtgui/widgets/button.c @@ -66,11 +66,7 @@ rt_bool_t rtgui_button_event_handler(struct rtgui_widget* widget, struct rtgui_e switch (event->type) { case RTGUI_EVENT_PAINT: -#ifndef RTGUI_USING_SMALL_SIZE - if (widget->on_draw != RT_NULL ) widget->on_draw(widget, event); - else -#endif - rtgui_theme_draw_button(btn); + rtgui_theme_draw_button(btn); break; case RTGUI_EVENT_KBD: |
