diff options
| author | bernard.xiong <[email protected]> | 2010-04-11 23:57:21 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2010-04-11 23:57:21 +0000 |
| commit | 4fd321c36ed4ab05021df2ca461fd795492f7d02 (patch) | |
| tree | 37d23ede05d9e093ed2afbd626f67e879aacd6d0 /rtgui/widgets | |
| parent | 553d24f82b5740503b3e2ef5f55590ed1de8aa72 (diff) | |
add rtgui_dc_draw_color_point function.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@606 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'rtgui/widgets')
| -rw-r--r-- | rtgui/widgets/about_view.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rtgui/widgets/about_view.c b/rtgui/widgets/about_view.c index f12baa4333..374a6ec43b 100644 --- a/rtgui/widgets/about_view.c +++ b/rtgui/widgets/about_view.c @@ -63,9 +63,9 @@ void rtgui_about_view_ondraw(struct rtgui_about_view* view) if (view->description != RT_NULL)
rtgui_dc_draw_text(dc, view->description, &rect);
- rect.y1 += rtgui_dc_get_font(dc)->height;
+ rect.y1 += rtgui_dc_get_gc(dc)->font->height;
rtgui_dc_draw_hline(dc, rect.x1 + 3, rect.x2 - 3, rect.y1);
- rtgui_dc_set_color(dc, white);
+ RTGUI_DC_FC(dc) = white;
rtgui_dc_draw_hline(dc, rect.x1 + 4, rect.x2 - 2, rect.y1 + 1);
rtgui_dc_end_drawing(dc);
|
