fixed a compiling error and change tabs to spaces

demo_view_benchmark.c:125:18: error: static declaration of
'_benchmark_onshow' follows non-static declaration
demo_view_benchmark.c:87:9: note: previous implicit declaration of
'_benchmark_onshow' was here

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2277 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
dzzxzz@gmail.com 2012-09-07 02:21:57 +00:00
parent 9707b6ce0b
commit fcfdd06bab
1 changed files with 19 additions and 17 deletions

View File

@ -12,6 +12,13 @@ static int running = 0;
static rt_tick_t ticks;
static long long area;
static rt_bool_t _benchmark_onshow(struct rtgui_object *obj, struct rtgui_event *ev)
{
rtgui_widget_focus(RTGUI_WIDGET(obj));
return RT_TRUE;
}
void _onidle(struct rtgui_object *object, rtgui_event_t *event)
{
rtgui_color_t color;
@ -111,6 +118,7 @@ rt_bool_t benchmark_event_handler(struct rtgui_object *object, rtgui_event_t *ev
running = !running;
}
return RT_TRUE;
}
else
@ -122,12 +130,6 @@ rt_bool_t benchmark_event_handler(struct rtgui_object *object, rtgui_event_t *ev
return RT_FALSE;
}
static rt_bool_t _benchmark_onshow(struct rtgui_object *obj, struct rtgui_event *ev)
{
rtgui_widget_focus(RTGUI_WIDGET(obj));
return RT_TRUE;
}
rtgui_container_t *demo_view_benchmark(void)
{
srand(100);