mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-27 01:28:23 +00:00
reduce message queue size in demo workbench.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@387 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
#include "demo_view.h"
|
||||
#include <rtgui/rtgui.h>
|
||||
#include <rtgui/dc.h>
|
||||
#include <rtgui/rtgui_system.h>
|
||||
#include <rtgui/widgets/view.h>
|
||||
#include "demo_view.h"
|
||||
|
||||
/*
|
||||
* ֱ<><D6B1><EFBFBD><EFBFBD>DC<44>ϻ<EFBFBD>ͼ<EFBFBD><CDBC>ʵ<EFBFBD>ֶ<EFBFBD><D6B6><EFBFBD>Ч<EFBFBD><D0A7>
|
||||
@@ -20,7 +19,7 @@ void timeout(struct rtgui_timer* timer, void* parameter)
|
||||
rtgui_rect_t rect;
|
||||
rtgui_widget_t *widget;
|
||||
|
||||
/**/
|
||||
/* <20>ؼ<EFBFBD>(view)ͨ<><CDA8>parameter<65><72><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݸ<EFBFBD><DDB8><EFBFBD>ʱ<EFBFBD><CAB1> */
|
||||
widget = (rtgui_widget_t*)parameter;
|
||||
|
||||
/* <20><><EFBFBD>ÿؼ<C3BF><D8BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>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 <EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
||||
if (view != RT_NULL)
|
||||
rtgui_widget_set_event_handler(RTGUI_WIDGET(view), animation_event_handler);
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user