Subversion Repositories Kolibri OS

Rev

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

Rev 6098 Rev 7300
Line 1... Line 1...
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                                 ;;
2
;;                                                                 ;;
3
;; Copyright (C) KolibriOS team 2004-2016. All rights reserved.    ;;
3
;; Copyright (C) KolibriOS team 2004-2018. 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 54... Line 54...
54
        mcall
54
        mcall
Line 55... Line 55...
55
                        
55
                        
56
        test    [thread_info.wnd_state], 100b           ; skip if window is rolled up
56
        test    [thread_info.wnd_state], 100b           ; skip if window is rolled up
Line -... Line 57...
-
 
57
        jne     .exit
-
 
58
 
-
 
59
        cmp     [window_active], 0
57
        jne     .exit
60
        je      .no_window
58
 
61
 
59
; calculate available space for textbox and coordinates for scrollbars
62
; calculate available space for textbox and coordinates for scrollbars
60
        mov     eax, [ysize]
63
        mov     eax, [ysize]
61
        sub     eax, TOP_Y + INPUTBOX_HEIGHT - 1
64
        sub     eax, TOP_Y + INPUTBOX_HEIGHT - 1
Line 126... Line 129...
126
        mov     ecx, [ysize]
129
        mov     ecx, [ysize]
127
        add     ecx, TOP_Y shl 16 - (INPUTBOX_HEIGHT)
130
        add     ecx, TOP_Y shl 16 - (INPUTBOX_HEIGHT)
128
        mov     edx, [colors.work_graph]
131
        mov     edx, [colors.work_graph]
129
        mcall   38
132
        mcall   38
130
  .not_channel:
133
  .not_channel:
-
 
134
  .no_window:
Line 131... Line 135...
131
 
135
 
132
; draw editbox
136
; draw editbox
133
        mov     eax, [ysize]
137
        mov     eax, [ysize]
134
        sub     eax, INPUTBOX_HEIGHT
138
        sub     eax, INPUTBOX_HEIGHT