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

fix win drawing issue.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@786 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 dcff85f1
......@@ -105,9 +105,9 @@ void rtgui_theme_draw_win(struct rtgui_topwin* win)
delta = 64 / (float)(rect.x2 - rect.x1);
}
for (index = rect.x1; index < rect.x2; index ++)
RTGUI_WIDGET_FOREGROUND(RTGUI_WIDGET(win->title)) = RTGUI_RGB(r, g, b);
for (index = rect.x1; index < rect.x2 + 1; index ++)
{
RTGUI_WIDGET_FOREGROUND(RTGUI_WIDGET(win->title)) = RTGUI_RGB(r, g, b);
rtgui_dc_draw_vline(dc, index, rect.y1, rect.y2);
r += delta; g += delta; b += delta;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册