From 0aa5ded9c1b25a5e84ca324bcc05d44712ee6210 Mon Sep 17 00:00:00 2001 From: "bernard.xiong@gmail.com" Date: Wed, 29 Jun 2011 14:42:54 +0000 Subject: [PATCH] git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1550 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/rtgui/widgets/textview.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/rtgui/widgets/textview.c b/components/rtgui/widgets/textview.c index 8540f96fb3..2bb7a41e1d 100644 --- a/components/rtgui/widgets/textview.c +++ b/components/rtgui/widgets/textview.c @@ -15,9 +15,9 @@ #include #include -rt_inline unsigned char* _get_line_text(rtgui_textview_t *textview, rt_uint16_t index) +rt_inline char* _get_line_text(rtgui_textview_t *textview, rt_uint16_t index) { - unsigned char* line; + char* line; if (index < textview->line_count) { line = textview->lines + (index * textview->line_width); @@ -29,7 +29,7 @@ rt_inline unsigned char* _get_line_text(rtgui_textview_t *textview, rt_uint16_t static void _calc_line(rtgui_textview_t *textview, const char* text) { - unsigned char* line; + char* line; const unsigned char* ptr; rt_ubase_t line_index, line_position;