Subversion Repositories Kolibri OS

Rev

Rev 4595 | Rev 4623 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4595 Rev 4622
Line 1... Line 1...
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                                 ;;
2
;;                                                                 ;;
3
;; Copyright (C) KolibriOS team 2004-2013. All rights reserved.    ;;
3
;; Copyright (C) KolibriOS team 2004-2014. All rights reserved.    ;;
4
;; Distributed under terms of the GNU General Public License       ;;
4
;; Distributed under terms of the GNU General Public License       ;;
5
;;                                                                 ;;
5
;;                                                                 ;;
6
;;   Written by hidnplayr@kolibrios.org                            ;;
6
;;   Written by hidnplayr@kolibrios.org                            ;;
7
;;                                                                 ;;
7
;;                                                                 ;;
8
;;         GNU GENERAL PUBLIC LICENSE                              ;;
8
;;         GNU GENERAL PUBLIC LICENSE                              ;;
Line 93... Line 93...
93
        mov     ecx, FONT_WIDTH
93
        mov     ecx, FONT_WIDTH
94
        div     ecx
94
        div     ecx
95
        mov     [textbox_width], eax
95
        mov     [textbox_width], eax
Line 96... Line 96...
96
 
96
 
-
 
97
; recalculate text line breaks (because height/width might have changed..)
97
; recalculate text line breaks (because height/width might have changed..)
98
; meanwhile, recalculate line number of current line
-
 
99
        mov     esi, [edi + window.text_print]
-
 
100
        mov     al, byte[esi]
-
 
101
        push    eax
-
 
102
        mov     byte[esi], 0
-
 
103
        push    esi
98
        mov     edi, [window_active]
104
 
99
        mov     esi, [edi + window.text_start]
105
        mov     esi, [edi + window.text_start]
100
        call    text_insert_newlines
106
        call    text_insert_newlines
101
        mov     [edi + window.text_lines], edx
107
        mov     [edi + window.text_lines], edx
-
 
108
        mov     [edi + window.text_scanned], esi
-
 
109
        mov     [edi + window.text_line_print], edx
-
 
110
 
-
 
111
        pop     esi
-
 
112
        pop     eax
Line 102... Line 113...
102
        mov     [edi + window.text_scanned], esi
113
        mov     byte[esi], al
103
 
114
 
104
; and redraw the textbox (and scrollbar if needed)
115
; and redraw the textbox (and scrollbar if needed)