1230,8 → 1230,8 |
add edx,sizeof.symbol |
cmp edx,ted_tex_end |
jge @f ;out of memory |
cmp ebx,0 |
jne .beg_cycle |
or ebx,ebx |
jnz .beg_cycle |
mov ted_ptr_free_symb,edx ;¬¥ï¥¬ 㪠§ ⥫ì ᢮¡®¤ë© ᨬ¢®«, ¤«ï ¡®«¥¥ ¡ëáâண® ¯®¨áª ¯ ¬ï⨠|
jmp .add_all |
@@: |
1238,8 → 1238,8 |
cmp ted_increase_size,0 |
je .add_all |
call ted_memory_increase |
cmp ebx,0 |
jne .beg_cycle |
or ebx,ebx |
jnz .beg_cycle |
.add_all: ;¢á¥ ᨬ¢®«ë ¤®¡ ¢«¥ë |
|
call ted_text_colored |
1960,8 → 1960,8 |
@@: |
call ted_iterat_perv |
|
cmp eax,0 |
jne .no_col_mov |
or eax,eax |
jnz .no_col_mov |
inc ebx |
.no_col_mov: |
|
3596,19 → 3596,8 |
imul edx,ted_rec_h |
add ecx,edx |
|
cmp ted_cur_ins,1 ;¯à®¢¥àª ०¨¬ à ¡®âë ªãàá®à (®¡ëçë© ¨«¨ ¢áâ ¢ª ) |
jne @f |
mov edx,ted_rec_h |
inc edx ;1->1, 3->2, 5->3, ... |
shr edx,1 ;edx = ¢ëá®â áâப¨ ¤¥«¥ ï 2 (ª®£¤ ªãàá®à ¥ ¯®«ë©) |
add ecx,edx |
@@: |
shl ecx,16 |
add ecx,ted_rec_h |
cmp ted_cur_ins,1 |
jne @f |
shr cx,1 ;¤¥«¨¬ ¢ëá®âã ªãàá®à 2 |
@@: |
|
mov ebx,ted_wnd_l ;calc rect -> x0,x1 |
add ebx,ted_rec_l |
3617,6 → 3606,10 |
add ebx,edx |
shl ebx,16 |
add ebx,ted_rec_w |
cmp ted_cur_ins,1 ;¯à®¢¥àª ०¨¬ à ¡®âë ªãàá®à (®¡ëçë© ¨«¨ ¢áâ ¢ª ) |
jne @f |
shr bx,2 ;㬥ìè ¥¬ è¨à¨ã ªãàá®à |
@@: |
|
mov edx,ted_color_cursor |
int 0x40 ;¢ë¢®¤ ªãàá®à |
3628,13 → 3621,6 |
ror ecx,16 |
mov bx,cx |
add ebx,0x10001 |
cmp ted_cur_ins,1 |
jne .no_up_tetx |
mov ecx,ted_rec_h |
inc cx ; 1->1, 3->2, 5->3, ... |
shr cx,1 |
sub bx,cx |
.no_up_tetx: |
mov ecx,ted_color_cur_text |
or ecx,ted_font_size |
call ted_convert_invis_symb |
4362,6 → 4348,20 |
shr ebx,1 |
cmp eax,ebx |
jae .no_scroll |
mov ebx,ted_cur_y ;¯®§¨æ¨ï ªãàá®à |
sub ebx,eax ;- ®¢ ï ¯®§¨æ¨ï áªà®««¨£ |
add ebx,[ecx+sb_offs_position] ;+ áâ à ï ¯®§¨æ¨ï áªà®««¨£ |
bt ebx,31 |
jnc @f |
xor ebx,ebx ;¥á«¨ ªãàá®à áâ « ¢ëè¥ ®ª , â® áâ ¢¨¬ ¢¥àåîî áâபã |
@@: |
inc ebx |
cmp ebx,[ecx+sb_offs_cur_area] |
jle @f |
mov ebx,[ecx+sb_offs_cur_area] ;¥á«¨ ªãàá®à áâ « ¨¦¥ ®ª , â® áâ ¢¨¬ ¨¦îî áâபã |
@@: |
dec ebx |
mov ted_cur_y,ebx |
mov [ecx+sb_offs_position],eax |
stdcall ted_draw,edi |
.no_scroll: |