Subversion Repositories Kolibri OS

Rev

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

Rev 6023 Rev 6026
Line 111... Line 111...
111
        mov     edi, [window_active]
111
        mov     edi, [window_active]
112
        cmp     [edi + window.type], WINDOWTYPE_CHANNEL
112
        cmp     [edi + window.type], WINDOWTYPE_CHANNEL
113
        jne     .not_channel
113
        jne     .not_channel
Line 114... Line 114...
114
 
114
 
115
        mov     [scroll1.all_redraw], 1
115
        mov     [scroll1.all_redraw], 1
Line 116... Line 116...
116
        call    draw_channel_list
116
        call    draw_user_list
117
 
117
 
118
; draw a vertical separator line when there is no scrollbar
118
; draw a vertical separator line when there is no scrollbar
Line 136... Line 136...
136
        mov     [edit1.top], eax
136
        mov     [edit1.top], eax
Line 137... Line 137...
137
 
137
 
138
        mov     eax, [xsize]
138
        mov     eax, [xsize]
Line 139... Line -...
139
        mov     [edit1.width], eax
-
 
140
 
139
        mov     [edit1.width], eax
Line 141... Line 140...
141
        push    dword edit1
140
 
142
        call    [edit_box_draw]
141
        invoke  edit_box_draw, edit1
Line 143... Line 142...
143
 
142
 
144
; draw tabs
143
; draw tabs
145
        call    draw_windowtabs
144
        call    draw_window_tabs
Line 146... Line 145...
146
                
145
                
Line 147... Line 146...
147
  .exit:
146
  .exit:
Line 148... Line 147...
148
        popa
147
        popa
149
        ret
148
        ret
Line 165... Line 164...
165
        cmp     eax, [scroll1.position]
164
        cmp     eax, [scroll1.position]
166
        ja      @f
165
        ja      @f
167
        mov     [scroll1.position], eax
166
        mov     [scroll1.position], eax
168
  @@:
167
  @@:
169
        ; OK, draw the scrollbar
168
        ; OK, draw the scrollbar
170
        push    dword scroll1
-
 
171
        call    [scrollbar_draw]
169
        invoke  scrollbar_draw, scroll1
Line 172... Line 170...
172
 
170
 
173
        ; dont redraw scrollbar completely next time,
171
        ; dont redraw scrollbar completely next time,
174
        ; unless draw_window asks us to by setting [scroll1.all_redraw] back to 1
172
        ; unless draw_window asks us to by setting [scroll1.all_redraw] back to 1
175
        mov     [scroll1.all_redraw], 0
173
        mov     [scroll1.all_redraw], 0
Line 209... Line 207...
209
        add     edx, window_data.names
207
        add     edx, window_data.names
Line 210... Line 208...
210
 
208
 
211
        pop     ebx
209
        pop     ebx
212
        mov     bx, TEXT_Y
210
        mov     bx, TEXT_Y
213
        mov     ecx, [colors.work_text]
211
        mov     ecx, [colors.work_text]
214
        or      ecx, 0x80000000                 ; ASCIIZ string
212
        or      ecx, 0x90000000                 ; 8x16 font, zero terminated string
Line 215... Line 213...
215
        mov     eax, 4                          ; draw text
213
        mov     eax, 4                          ; draw text
216
 
214
 
217
        mov     edi, [textbox_height]           ; how many names will fit on screen
215
        mov     edi, [textbox_height]           ; how many names will fit on screen
Line 224... Line 222...
224
                                                ; yes, highlight it
222
                                                ; yes, highlight it
225
        pusha
223
        pusha
226
        mov     cx, bx
224
        mov     cx, bx
227
        mov     bx, USERLIST_WIDTH
225
        mov     bx, USERLIST_WIDTH
228
        shl     ecx, 16
226
        shl     ecx, 16
229
        mov     cx, 10 - 1
227
        mov     cx, FONT_HEIGHT
230
        mov     edx, 0x00000055                 ; blue!
228
        mov     edx, 0x00000055                 ; blue!
231
        mcall   13
229
        mcall   13
232
        popa
230
        popa
Line 233... Line 231...
233
 
231
 
234
        mov     ecx, 0x8000ffff                 ; cyan!
232
        mov     ecx, 0x9000ffff                 ; cyan!
Line 235... Line 233...
235
        mcall
233
        mcall
236
 
234
 
237
        mov     ecx, [colors.work_text]
235
        mov     ecx, [colors.work_text]
Line 238... Line 236...
238
        or      ecx, 0x80000000                 ; ASCIIZ string
236
        or      ecx, 0x90000000                 ; 8x16 font, zero terminated string
239
        jmp     .next
237
        jmp     .next
Line 251... Line 249...
251
        popa
249
        popa
Line 252... Line 250...
252
 
250
 
Line 253... Line 251...
253
        ret
251
        ret
Line 254... Line 252...
254
 
252
 
Line 255... Line 253...
255
 
253
 
256
draw_windowtabs:
254
draw_window_tabs: