Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
宁楠萍
rt-thread
提交
a7524180
R
rt-thread
项目概览
宁楠萍
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a7524180
编写于
11月 12, 2017
作者:
T
tanek liang
提交者:
Bernard Xiong
11月 12, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[gui] fix rtgui_dc_end_drawing() too few arguments in function call
上级
d12ea8eb
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
12 addition
and
12 deletion
+12
-12
bsp/efm32/application.c
bsp/efm32/application.c
+1
-1
bsp/mb9bf500r/info.c
bsp/mb9bf500r/info.c
+4
-4
bsp/stm32f429-apollo/applications/rtgui_demo.c
bsp/stm32f429-apollo/applications/rtgui_demo.c
+1
-1
bsp/stm32f429_armfly/applications/rtgui_demo.c
bsp/stm32f429_armfly/applications/rtgui_demo.c
+1
-1
examples/module/tetris/tetris_ui.c
examples/module/tetris/tetris_ui.c
+1
-1
examples/module/tetris/tetris_view.c
examples/module/tetris/tetris_view.c
+4
-4
未找到文件。
bsp/efm32/application.c
浏览文件 @
a7524180
...
...
@@ -148,7 +148,7 @@ static rt_bool_t pic_view_event_handler(rtgui_object_t *object, rtgui_event_t *e
rt_kprintf
(
"APP err: no image found!
\n
"
);
}
rtgui_dc_end_drawing
(
dc
);
rtgui_dc_end_drawing
(
dc
,
RT_TRUE
);
}
return
result
;
...
...
bsp/mb9bf500r/info.c
浏览文件 @
a7524180
...
...
@@ -42,7 +42,7 @@ static rt_bool_t view_event_handler(struct rtgui_widget* widget, struct rtgui_ev
rtgui_dc_draw_text
(
dc
,
" FM3 Easy Kit Demo"
,
&
rect
);
rect
.
y1
+=
10
;
rtgui_dc_draw_text
(
dc
,
" rt-thread / RTGUI"
,
&
rect
);
rtgui_dc_end_drawing
(
dc
);
rtgui_dc_end_drawing
(
dc
,
RT_TRUE
);
return
RT_FALSE
;
}
...
...
@@ -81,7 +81,7 @@ static rt_bool_t view_event_handler(struct rtgui_widget* widget, struct rtgui_ev
rect
.
y2
=
10
;
rtgui_dc_fill_rect
(
dc
,
&
rect
);
rtgui_dc_draw_text
(
dc
,
key_str
,
&
rect
);
rtgui_dc_end_drawing
(
dc
);
rtgui_dc_end_drawing
(
dc
,
RT_TRUE
);
}
else
if
(
ekbd
->
type
==
RTGUI_KEYUP
)
{
...
...
@@ -94,7 +94,7 @@ static rt_bool_t view_event_handler(struct rtgui_widget* widget, struct rtgui_ev
rect
.
y2
=
10
;
rtgui_dc_fill_rect
(
dc
,
&
rect
);
//rtgui_dc_draw_text(dc, key_str, &rect);
rtgui_dc_end_drawing
(
dc
);
rtgui_dc_end_drawing
(
dc
,
RT_TRUE
);
}
}
else
if
(
event
->
type
==
RTGUI_EVENT_COMMAND
)
...
...
@@ -144,7 +144,7 @@ static rt_bool_t view_event_handler(struct rtgui_widget* widget, struct rtgui_ev
rtgui_dc_draw_vline
(
dc
,
index
,
rect
.
y2
-
major
,
rect
.
y2
);
break
;
}
rtgui_dc_end_drawing
(
dc
);
rtgui_dc_end_drawing
(
dc
,
RT_TRUE
);
}
return
rtgui_view_event_handler
(
widget
,
event
);
...
...
bsp/stm32f429-apollo/applications/rtgui_demo.c
浏览文件 @
a7524180
...
...
@@ -108,7 +108,7 @@ rt_bool_t dc_event_handler(struct rtgui_object *object, rtgui_event_t *event)
rtgui_dc_draw_text_stroke
(
dc
,
__TIME__
,
&
rect
,
HIGH_LIGHT
,
BLACK
);
rtgui_dc_end_drawing
(
dc
);
rtgui_dc_end_drawing
(
dc
,
RT_TRUE
);
}
return
RT_FALSE
;
}
...
...
bsp/stm32f429_armfly/applications/rtgui_demo.c
浏览文件 @
a7524180
...
...
@@ -106,7 +106,7 @@ rt_bool_t dc_event_handler(struct rtgui_object *object, rtgui_event_t *event)
rtgui_dc_draw_text_stroke
(
dc
,
__DATE__
"--"
__TIME__
,
&
rect
,
HIGH_LIGHT
,
BLUE
);
rtgui_dc_end_drawing
(
dc
);
rtgui_dc_end_drawing
(
dc
,
RT_TRUE
);
}
return
RT_FALSE
;
}
...
...
examples/module/tetris/tetris_ui.c
浏览文件 @
a7524180
...
...
@@ -72,7 +72,7 @@ static rt_bool_t game_view_event_handler(struct rtgui_widget* widget, struct rtg
rect
.
y1
+=
22
;
rect
.
y2
=
rect
.
y1
+
16
;
rtgui_dc_draw_text
(
dc
,
"score"
,
&
rect
);
rtgui_dc_end_drawing
(
dc
);
rtgui_dc_end_drawing
(
dc
,
RT_TRUE
);
/* start tetris game, removed later */
rt_tetris_start
(
g_app_info
.
tetris
);
...
...
examples/module/tetris/tetris_view.c
浏览文件 @
a7524180
...
...
@@ -95,7 +95,7 @@ static rt_err_t _rt_tetris_view_update_next_brick(rt_tetris_view_t* thiz, rt_tet
rtgui_dc_fill_rect
(
dc
,
&
rect
);
}
rtgui_dc_end_drawing
(
dc
);
rtgui_dc_end_drawing
(
dc
,
RT_TRUE
);
return
RT_EOK
;
}
...
...
@@ -125,7 +125,7 @@ static rt_err_t _rt_tetris_view_update_level(rt_tetris_view_t* thiz, rt_tetris_t
rtgui_dc_draw_text
(
dc
,
text
,
&
rect
);
/* Redraw panel */
rtgui_dc_end_drawing
(
dc
);
rtgui_dc_end_drawing
(
dc
,
RT_TRUE
);
return
RT_EOK
;
}
...
...
@@ -163,7 +163,7 @@ static rt_err_t _rt_tetris_view_update_score_and_lines(rt_tetris_view_t* thiz, r
rtgui_dc_draw_text
(
dc
,
text
,
&
rect
);
/* Redraw panel */
rtgui_dc_end_drawing
(
dc
);
rtgui_dc_end_drawing
(
dc
,
RT_TRUE
);
return
RT_EOK
;
}
...
...
@@ -211,7 +211,7 @@ static rt_err_t _rt_tetris_view_update(rt_tetris_view_t* thiz, rt_tetris_t* tetr
}
/* Redraw panel */
rtgui_dc_end_drawing
(
dc
);
rtgui_dc_end_drawing
(
dc
,
RT_TRUE
);
return
RT_EOK
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录