From: John Hodge (sonata) Date: Sun, 20 Jan 2013 13:26:46 +0000 (+0800) Subject: Usermode/axwin3 - RichText cursor (hacked) X-Git-Tag: rel0.15~598^2~1 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=97088ef688ddecc19077ce134046af7ea6d1e232;p=tpg%2Facess2.git Usermode/axwin3 - RichText cursor (hacked) --- diff --git a/Usermode/Applications/axwin3_src/WM/renderers/richtext.c b/Usermode/Applications/axwin3_src/WM/renderers/richtext.c index 7a98feb8..c62dd7f5 100644 --- a/Usermode/Applications/axwin3_src/WM/renderers/richtext.c +++ b/Usermode/Applications/axwin3_src/WM/renderers/richtext.c @@ -224,8 +224,13 @@ void Renderer_RichText_Redraw(tWindow *Window) Window->W, (info->DispLines-i)*info->LineHeight, info->DefaultBG ); - + + // HACK! + info->DispCols = Window->W / 8; + // TODO: Text cursor + _SysDebug("Cursor at %i,%i", info->CursorCol, info->CursorRow); + _SysDebug(" Range [%i+%i],[%i+%i]", info->FirstVisRow, info->DispLines, info->FirstVisCol, info->DispCols); if( info->CursorRow >= info->FirstVisRow && info->CursorRow < info->FirstVisRow + info->DispLines ) { if( info->CursorCol >= info->FirstVisCol && info->CursorCol < info->FirstVisCol + info->DispCols )