提交 fcfdd06b 编写于 作者: D dzzxzz@gmail.com

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
上级 9707b6ce
...@@ -12,6 +12,13 @@ static int running = 0; ...@@ -12,6 +12,13 @@ static int running = 0;
static rt_tick_t ticks; static rt_tick_t ticks;
static long long area; 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) void _onidle(struct rtgui_object *object, rtgui_event_t *event)
{ {
rtgui_color_t color; rtgui_color_t color;
...@@ -111,6 +118,7 @@ rt_bool_t benchmark_event_handler(struct rtgui_object *object, rtgui_event_t *ev ...@@ -111,6 +118,7 @@ rt_bool_t benchmark_event_handler(struct rtgui_object *object, rtgui_event_t *ev
running = !running; running = !running;
} }
return RT_TRUE; return RT_TRUE;
} }
else else
...@@ -122,12 +130,6 @@ rt_bool_t benchmark_event_handler(struct rtgui_object *object, rtgui_event_t *ev ...@@ -122,12 +130,6 @@ rt_bool_t benchmark_event_handler(struct rtgui_object *object, rtgui_event_t *ev
return RT_FALSE; 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) rtgui_container_t *demo_view_benchmark(void)
{ {
srand(100); srand(100);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册