git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1550 bbd45198-f89e-11dd-88c7-29a3b14d5316

This commit is contained in:
bernard.xiong@gmail.com 2011-06-29 14:42:54 +00:00
parent bad2e992ef
commit 0aa5ded9c1
1 changed files with 3 additions and 3 deletions

View File

@ -15,9 +15,9 @@
#include <rtgui/rtgui_system.h>
#include <rtgui/widgets/textview.h>
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;