Tinypad 4.0.4 (bugfix for redrawing issue)

git-svn-id: svn://kolibrios.org@311 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Mihail Semenyako (mike.dld)
2007-02-01 13:38:46 +00:00
parent c5afda25bd
commit f050c18f32
2 changed files with 16 additions and 3 deletions

View File

@@ -999,7 +999,11 @@ func editor_check_for_changes ;///// EDITOR CHANGES CHECKER //////////////////
xor edx,edx
mov eax,[cur_editor.TopLeft.Y]
mov eax,[cur_editor.Lines.Count]
cmp eax,[checker_ed.Lines.Count]
je @f
or dl,REDRAW_TEXT+REDRAW_VSCROLL+REDRAW_HSCROLL
@@: mov eax,[cur_editor.TopLeft.Y]
cmp eax,[checker_ed.TopLeft.Y]
je @f
or dl,REDRAW_TEXT+REDRAW_VSCROLL
@@ -1010,6 +1014,14 @@ func editor_check_for_changes ;///// EDITOR CHANGES CHECKER //////////////////
@@: or dl,dl
jnz .redraw
mov ecx,[cur_editor.Caret.Y]
call get_line_offset
call get_real_length
cmp eax,[checker_ed_ll]
je @f
mov [checker_ed_ll],eax
or dl,REDRAW_ONELINE
@@:
mov eax,[cur_editor.Caret.Y]
cmp eax,[checker_ed.Caret.Y]
je @f