Subversion Repositories Kolibri OS

Rev

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

Rev 4621 Rev 4622
Line 199... Line 199...
199
        jnz     .loop_forward
199
        jnz     .loop_forward
200
  .ok:
200
  .ok:
201
        mov     [edi + window.text_print], esi
201
        mov     [edi + window.text_print], esi
202
  .noscroll:
202
  .noscroll:
Line -... Line 203...
-
 
203
 
-
 
204
; Update and draw scrollbar when nescessary
-
 
205
        mov     edx, [edi + window.text_lines]
-
 
206
        cmp     edx, [textbox_height]
-
 
207
        jbe     .scroll_done
-
 
208
 
-
 
209
        mov     [scroll2.max_area], edx
-
 
210
        mov     eax, [edi + window.text_line_print]
-
 
211
        mov     [scroll2.position], eax
-
 
212
 
-
 
213
        push    dword scroll2                   ; redraw scrollbar
-
 
214
        call    [scrollbar_draw]
-
 
215
        mov     [scroll2.all_redraw], 0         ; next time, dont redraw it completely
-
 
216
  .scroll_done:
203
 
217
 
204
; Calculate start offset coordinates (align text to bottom)
218
; Calculate start offset coordinates (align text to bottom)
205
        mov     ebx, [textbox_height]
219
        mov     ebx, [textbox_height]
206
        sub     ebx, [edi + window.text_lines]
220
        sub     ebx, [edi + window.text_lines]
207
        jb      .no_offset
221
        jb      .no_offset
Line 260... Line 274...
260
        jz      .no_colors
274
        jz      .no_colors
261
        mov     edi, [irc_colors + 4*esi]
275
        mov     edi, [irc_colors + 4*esi]
262
        or      ecx, 0x40000000
276
        or      ecx, 0x40000000
263
  .no_colors:
277
  .no_colors:
Line 264... Line -...
264
 
-
 
265
  .draw:
278
 
266
        mov     esi, 1
279
        mov     esi, 1
267
        mcall   4                       ; draw text
280
        mcall   4                       ; draw text
268
        add     ebx, FONT_WIDTH shl 16
281
        add     ebx, FONT_WIDTH shl 16
269
        inc     edx
282
        inc     edx
Line 281... Line 294...
281
        add     ebx, TEXT_X shl 16 + FONT_HEIGHT
294
        add     ebx, TEXT_X shl 16 + FONT_HEIGHT
282
        dec     eax
295
        dec     eax
283
        jnz     .drawloop
296
        jnz     .drawloop
284
  .end_of_text:
297
  .end_of_text:
Line 285... Line -...
285
 
-
 
286
; Update and draw scrollbar when nescessary
-
 
287
        mov     edi, [window_active]
-
 
288
        mov     edx, [edi + window.text_lines]
-
 
289
        cmp     edx, [textbox_height]
-
 
290
        jbe     .scroll_done
-
 
291
 
-
 
292
        mov     [scroll2.max_area], edx
-
 
293
        mov     eax, [edi + window.text_line_print]
-
 
294
        mov     [scroll2.position], eax
-
 
295
 
-
 
296
        push    dword scroll2                   ; redraw scrollbar
-
 
297
        call    [scrollbar_draw]
-
 
298
        mov     [scroll2.all_redraw], 0         ; next time, dont redraw it completely
-
 
299
  .scroll_done:
-
 
300
 
298