179,12 → 179,13 |
mov [edi + window.text_scanned], esi |
|
; Is scrollbar at lowest position? |
mov edx, [scroll2.position] |
test edx, edx |
jz .yesscroll |
add edx, [scroll2.cur_area] |
sub edx, [scroll2.max_area] |
jne .noscroll |
test [edi + window.flags], FLAG_SCROLL_LOW |
jnz .yesscroll ;Yes |
cmp [scroll2.all_redraw], 1 ;No |
jnz .noscroll |
mov edx, [textbox_height] |
sub edx, [edi + window.text_line_print] |
jg .noscroll |
.yesscroll: |
; Scrollbar was at lowest position, scroll down automatically when new text arrived. |
mov edx, [edi + window.text_lines] |