git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usermode/axwin3 - RichText cursor (hacked)
[tpg/acess2.git]
/
Usermode
/
Applications
/
axwin3_src
/
WM
/
renderers
/
richtext.c
diff --git
a/Usermode/Applications/axwin3_src/WM/renderers/richtext.c
b/Usermode/Applications/axwin3_src/WM/renderers/richtext.c
index
7a98feb
..
c62dd7f
100644
(file)
--- 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
);
Window->W, (info->DispLines-i)*info->LineHeight,
info->DefaultBG
);
-
+
+ // HACK!
+ info->DispCols = Window->W / 8;
+
// TODO: Text cursor
// 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 )
if( info->CursorRow >= info->FirstVisRow && info->CursorRow < info->FirstVisRow + info->DispLines )
{
if( info->CursorCol >= info->FirstVisCol && info->CursorCol < info->FirstVisCol + info->DispCols )
UCC
git Repository :: git.ucc.asn.au