Rev 4623 | Rev 4827 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4623 | Rev 4824 | ||
---|---|---|---|
Line 177... | Line 177... | ||
177 | call text_insert_newlines |
177 | call text_insert_newlines |
178 | add [edi + window.text_lines], edx |
178 | add [edi + window.text_lines], edx |
179 | mov [edi + window.text_scanned], esi |
179 | mov [edi + window.text_scanned], esi |
Line 180... | Line 180... | ||
180 | 180 | ||
181 | ; Is scrollbar at lowest position? |
181 | ; Is scrollbar at lowest position? |
182 | mov edx, [scroll2.position] |
182 | test [edi + window.flags], FLAG_SCROLL_LOW |
- | 183 | jnz .yesscroll ;Yes |
|
183 | test edx, edx |
184 | cmp [scroll2.all_redraw], 1 ;No |
184 | jz .yesscroll |
185 | jnz .noscroll |
185 | add edx, [scroll2.cur_area] |
186 | mov edx, [textbox_height] |
186 | sub edx, [scroll2.max_area] |
187 | sub edx, [edi + window.text_line_print] |
187 | jne .noscroll |
188 | jg .noscroll |
188 | .yesscroll: |
189 | .yesscroll: |
189 | ; Scrollbar was at lowest position, scroll down automatically when new text arrived. |
190 | ; Scrollbar was at lowest position, scroll down automatically when new text arrived. |
190 | mov edx, [edi + window.text_lines] |
191 | mov edx, [edi + window.text_lines] |
191 | sub edx, [textbox_height] |
192 | sub edx, [textbox_height] |