Subversion Repositories Kolibri OS

Rev

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

Rev 7785 Rev 7988
Line 76... Line 76...
76
    mov     edx, dword [buffer + 32]
76
    mov     edx, dword [buffer + 32]
77
    shl     edx, 2
77
    shl     edx, 2
Line 78... Line 78...
78
 
78
 
79
;; ALLOCATE MEMORY FOR THIS
79
;; ALLOCATE MEMORY FOR THIS
80
    stdcall mem.Alloc, edx
80
    stdcall mem.Alloc, edx
Line 81... Line 81...
81
    mov     [img_data.rgb_obj], eax
81
    mov     [img_data.file], eax
82
 
82
 
83
;; READ ICONS
83
;; READ ICONS
84
    mov     dword [fi + 00], 0
84
    mov     dword [fi + 00], 0
85
    mov     dword [fi + 12], edx
85
    mov     dword [fi + 12], edx
Line 86... Line 86...
86
    mov     dword [fi + 16], eax
86
    mov     dword [fi + 16], eax
87
    mcall   70, fi
87
    mcall   70, fi
88
 
88
 
89
;; DECODE ICONS
-
 
90
    stdcall dword [img.decode], dword [img_data.rgb_obj], ebx, 0
-
 
91
    mov     dword [img_data.obj], eax
-
 
92
    stdcall dword [img.to_rgb], dword [img_data.obj], dword [img_data.rgb_obj]
-
 
Line 93... Line 89...
93
    stdcall dword [img.destroy], dword [img_data.obj]
89
;; DECODE ICONS
94
 
90
    stdcall dword [img.decode], dword [img_data.file], ebx, 0
95
 
91
    mov     dword [img_data.obj], eax
96
 
92
 
Line 496... Line 492...
496
 ;-----
492
 ;-----
Line 497... Line 493...
497
 
493
 
498
    cmpe    byte [params.icon], 0, @f
494
    cmpe    byte [params.icon], 0, @f
499
    movzx   ebx, byte [params.icon]
495
    movzx   ebx, byte [params.icon]
500
    dec     ebx
496
    dec     ebx
501
    imul    ebx, 24 * 24 * 3
-
 
Line 502... Line 497...
502
    add     ebx, [img_data.rgb_obj]
497
    imul    ebx, 24
503
 
498
 
504
    mov     edx, [window.height]
499
    mov     edx, [window.height]
505
    shr     edx, 1
-
 
Line 506... Line 500...
506
    sub     edx, 12
500
    shr     edx, 1
507
    add     edx, LINEH shl 16
501
    sub     edx, 12
Line 508... Line 502...
508
 
502
	
Line 509... Line 503...
509
    mcall   7, , <24, 24>
503
	stdcall dword [img.draw], dword [img_data.obj], 12, edx, 24, 24, 0, ebx
Line 762... Line 756...
762
 
756
 
763
 @imports:
757
 @imports:
764
    library img, "libimg.obj"
758
    library img, "libimg.obj"
765
    import  img, img.to_rgb,  "img_to_rgb2", \
759
    import  img, img.to_rgb,  "img_to_rgb2", \
766
		 img.decode,  "img_decode",  \
760
		 img.decode,  "img_decode",  \
Line 767... Line 761...
767
		 img.destroy, "img_destroy"
761
		 img.draw, "img_draw"
Line 768... Line 762...
768
 
762
 
769
 ;----------------------------
763
 ;----------------------------
Line 828... Line 822...
828
 .pbar	   rb 1
822
 .pbar	   rb 1
829
 .icon	   rb 1
823
 .icon	   rb 1
830
 .ctrl	   rb 1
824
 .ctrl	   rb 1
Line 831... Line 825...
831
 
825
 
832
 img_data:
826
 img_data:
833
 .rgb_obj  rd 1
827
 .file  rd 1
Line 834... Line 828...
834
 .obj	   rd 1
828
 .obj	   rd 1
835
 
829
 
836
 timer:
830
 timer: