Subversion Repositories Kolibri OS

Rev

Rev 7889 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7889 Rev 7890
Line 1... Line 1...
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                                 ;;
2
;;                                                                 ;;
3
;; Copyright (C) KolibriOS team 2004-2018. All rights reserved.    ;;
3
;; Copyright (C) KolibriOS team 2004-2020. 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 13... Line 13...
13
 
13
 
Line 14... Line 14...
14
draw_window:    ; Completely redraw the window, recalculate all coordinates and sizes
14
draw_window:    ; Completely redraw the window, recalculate all coordinates and sizes
Line -... Line 15...
-
 
15
 
-
 
16
        pusha
-
 
17
 
-
 
18
; get system colors
15
 
19
        mcall   48, 3, colors, 40
16
        pusha
20
        call    set_edit_box_and_scrollbar_colors
17
 
21
 
18
        mcall   9, thread_info, -1                      ; get information about this thread
22
        mcall   9, thread_info, -1                      ; get information about this thread
19
        mov     eax, [thread_info.box.width]            ; window xsize
23
        mov     eax, [thread_info.box.width]            ; window xsize
Line 359... Line 363...
359
        dec     esi
363
        dec     esi
360
        jnz     .more_
364
        jnz     .more_
361
  .enough_:
365
  .enough_:
Line 362... Line 366...
362
 
366
 
363
        ret
367
        ret
-
 
368
		
-
 
369
set_edit_box_and_scrollbar_colors:
-
 
370
        mov     eax, [colors.work]
-
 
371
        mov     [scroll1.bg_color], eax
-
 
372
        mov     [scroll2.bg_color], eax
-
 
373
 
-
 
374
        mov     eax, [colors.work_button]
-
 
375
        mov     [scroll1.front_color], eax
-
 
376
        mov     [scroll2.front_color], eax
-
 
377
 
-
 
378
        mov     eax, [colors.work_text]
-
 
379
        mov     [scroll1.line_color], eax
-
 
380
        mov     [scroll2.line_color], eax
-
 
381
 
-
 
382
        mov     [scroll1.type], 0               ; 0 = simple, 1 = skinned
-
 
383
        mov     [scroll2.type], 0
-
 
384
 
-
 
385
        ret
364
386