提交 916a7302 编写于 作者: B bernard.xiong@gmail.com

fix gui example issue in 0.3.x.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@939 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 d640fd44
......@@ -4,6 +4,7 @@
#include <rtgui/widgets/view.h>
#include "demo_view.h"
#if RT_VERSION == 4
#define RAND(x1, x2) ((rand() % (x2 - x1)) + x1)
static rtgui_view_t* view = RT_NULL;
......@@ -107,3 +108,4 @@ rtgui_view_t *demo_view_benchmark(rtgui_workbench_t* workbench)
return view;
}
#endif
......@@ -29,8 +29,6 @@ rt_bool_t instrument_panel_event_handler(rtgui_widget_t* widget, rtgui_event_t *
{
struct rtgui_dc* dc;
rtgui_rect_t rect;
const int vx[] = {85, 85, 105, 105};
const int vy[] = {60, 100, 100, 60};
const int arrowx[] = {120+75, 120+75, 120+85};
const int arrowy[] = {170-5, 170+5, 170};
......
......@@ -62,18 +62,20 @@ static void workbench_entry(void* parameter)
#endif
#endif
#ifndef RTGUI_USING_SMALL_SIZE
demo_view_dc_buffer(workbench);
#endif
demo_view_animation(workbench);
#ifndef RTGUI_USING_SMALL_SIZE
demo_view_buffer_animation(workbench);
demo_view_instrument_panel(workbench);
#endif
demo_view_window(workbench);
demo_view_label(workbench);
demo_view_button(workbench);
demo_view_checkbox(workbench);
demo_view_progressbar(workbench);
#if RT_VERSION == 4
demo_view_scrollbar(workbench);
#endif
demo_view_radiobox(workbench);
demo_view_textbox(workbench);
demo_view_listbox(workbench);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册