diff --git a/examples/gui/demo_view_animation.c b/examples/gui/demo_view_animation.c index 93203a760..ca2c89225 100644 --- a/examples/gui/demo_view_animation.c +++ b/examples/gui/demo_view_animation.c @@ -1,8 +1,7 @@ -#include "demo_view.h" -#include #include #include #include +#include "demo_view.h" /* * 直接在DC上绘图以实现动画效果 @@ -20,7 +19,7 @@ void timeout(struct rtgui_timer* timer, void* parameter) rtgui_rect_t rect; rtgui_widget_t *widget; - /**/ + /* 控件(view)通过parameter参数传递给定时器 */ widget = (rtgui_widget_t*)parameter; /* 获得控件所属的DC */ @@ -100,7 +99,7 @@ rtgui_view_t *demo_view_animation(rtgui_workbench_t* workbench) { rtgui_view_t *view; - view = demo_view(workbench, "DC animation"); + view = demo_view(workbench, "DC 动画"); if (view != RT_NULL) rtgui_widget_set_event_handler(RTGUI_WIDGET(view), animation_event_handler); diff --git a/examples/gui/demo_workbench.c b/examples/gui/demo_workbench.c index a8b9bfc0a..2dc43176b 100644 --- a/examples/gui/demo_workbench.c +++ b/examples/gui/demo_workbench.c @@ -38,7 +38,7 @@ static void workbench_entry(void* parameter) /* 鍒涘缓GUI搴旂敤闇瑕佺殑娑堟伅闃熷垪 */ #ifdef RTGUI_USING_SMALL_SIZE - mq = rt_mq_create("workbench", 64, 8, RT_IPC_FLAG_FIFO); + mq = rt_mq_create("workbench", 32, 8, RT_IPC_FLAG_FIFO); #else mq = rt_mq_create("workbench", 256, 8, RT_IPC_FLAG_FIFO); #endif