Subversion Repositories Kolibri OS

Rev

Rev 485 | Rev 6328 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 485 Rev 552
1
;-----------------------------------------------------------
1
;-----------------------------------------------------------
2
;---load icons  in memory and draw icons on panel-----------
2
;---load icons  in memory and draw icons on panel-----------
3
;-----------------------------------------------------------
3
;-----------------------------------------------------------
4
load_icons:
4
load_icons:
5
	 mov esi,panel_picture
5
	 mov esi,panel_picture
6
	 mov edi,[ScreenPointer]
6
	 mov edi,[ScreenPointer]
7
	 mov eax,edi
-
 
8
	 add edi,(1200*1000*3)
7
	 add edi,(1200*1000*3)
9
	 ;mov edi,[PointerToIcons]
8
	 ;mov edi,[PointerToIcons]
10
	 call ReadGIF
9
	 call ReadGIF
11
 
10
 
12
	 ret
11
	 ret
13
 
12
 
14
draw_icons:
13
draw_icons:
15
 
14
 
16
	 mov [Icon_X],7
15
	 mov [Icon_X],7
17
	 mov [Icon_Y],20+15+4
16
	 mov [Icon_Y],20+15+4
18
 
17
 
19
	 ;draw panel picture
18
	 ;draw panel picture
20
	 mov edx,[Icon_X]
19
	 mov edx,[Icon_X]
21
	 shl edx,16
20
	 shl edx,16
22
	 add edx,[Icon_Y]
21
	 add edx,[Icon_Y]
23
	 mov ebx,[ScreenPointer]
22
	 mov ebx,[ScreenPointer]
24
	 add ebx,(1200*1000*3)+12
23
	 add ebx,(1200*1000*3)+8
25
	 mov eax,7
24
	 mov eax,7
26
	 mov ecx,417*65536+46
25
	 mov ecx,417*65536+46
27
	 mcall
26
	 mcall
28
 
27
 
29
 
28
 
30
	 ;main buttons of instrumnts
29
	 ;main buttons of instrumnts
31
 
30
 
32
	 and [counter],0
31
	 and [counter],0
33
	 mov [Icon_X],8
32
	 mov [Icon_X],8
34
	 mov [Icon_Y],20+15+4+1
33
	 mov [Icon_Y],20+15+4+1
35
 
34
 
36
   main_buttons:
35
   main_buttons:
37
 
36
 
38
	 mov eax,8
37
	 mov eax,8
39
	 mov ebx,[Icon_X]
38
	 mov ebx,[Icon_X]
40
	 mov ecx,[Icon_Y]
39
	 mov ecx,[Icon_Y]
41
	 dec ebx
40
	 dec ebx
42
	 dec ecx
41
	 dec ecx
43
	 shl ebx,16
42
	 shl ebx,16
44
	 shl ecx,16
43
	 shl ecx,16
45
	 add ebx,19
44
	 add ebx,19
46
	 add ecx,20
45
	 add ecx,20
47
	 mov edx,[counter]
46
	 mov edx,[counter]
48
	 add edx,10
47
	 add edx,10
49
	 add edx,1000000000000000000000000000000b
48
	 add edx,1000000000000000000000000000000b
50
	 mcall
49
	 mcall
51
 
50
 
52
 
51
 
53
	 add [Icon_X],22
52
	 add [Icon_X],22
54
 
53
 
55
	 inc [counter]
54
	 inc [counter]
56
	 cmp [counter],19
55
	 cmp [counter],19
57
	 jne main_buttons
56
	 jne main_buttons
58
 
57
 
59
 
58
 
60
	 ;buttons of brushes(and lines width)
59
	 ;buttons of brushes(and lines width)
61
	 and [counter],0
60
	 and [counter],0
62
 
61
 
63
	 mov [Icon_X],7+1
62
	 mov [Icon_X],7+1
64
	 mov [Icon_Y],20+15+4+25+1
63
	 mov [Icon_Y],20+15+4+25+1
65
 
64
 
66
	 next_button_brush:
65
	 next_button_brush:
67
 
66
 
68
	 mov eax,8
67
	 mov eax,8
69
	 mov ebx,[Icon_X]
68
	 mov ebx,[Icon_X]
70
	 mov ecx,[Icon_Y]
69
	 mov ecx,[Icon_Y]
71
	 dec ebx
70
	 dec ebx
72
	 dec ecx
71
	 dec ecx
73
	 shl ebx,16
72
	 shl ebx,16
74
	 shl ecx,16
73
	 shl ecx,16
75
	 add ebx,19
74
	 add ebx,19
76
	 add ecx,20
75
	 add ecx,20
77
	 mov edx,[counter]
76
	 mov edx,[counter]
78
	 add edx,40
77
	 add edx,40
79
	 add edx,1000000000000000000000000000000b
78
	 add edx,1000000000000000000000000000000b
80
	 mcall
79
	 mcall
81
 
80
 
82
	 add [Icon_X],19
81
	 add [Icon_X],19
83
 
82
 
84
	 inc [counter]
83
	 inc [counter]
85
	 cmp [counter],5
84
	 cmp [counter],5
86
	 jne next_button_brush
85
	 jne next_button_brush
87
 
86
 
88
 
87
 
89
	 ;buttons of zoom
88
	 ;buttons of zoom
90
	 and [counter],0
89
	 and [counter],0
91
 
90
 
92
	 mov [Icon_X],7+155+1
91
	 mov [Icon_X],7+155+1
93
	 mov [Icon_Y],20+15+4+25+1
92
	 mov [Icon_Y],20+15+4+25+1
94
 
93
 
95
	 next_button_zoom:
94
	 next_button_zoom:
96
 
95
 
97
	 mov eax,8
96
	 mov eax,8
98
	 mov ebx,[Icon_X]
97
	 mov ebx,[Icon_X]
99
	 mov ecx,[Icon_Y]
98
	 mov ecx,[Icon_Y]
100
	 dec ebx
99
	 dec ebx
101
	 dec ecx
100
	 dec ecx
102
	 shl ebx,16
101
	 shl ebx,16
103
	 shl ecx,16
102
	 shl ecx,16
104
	 add ebx,19
103
	 add ebx,19
105
	 add ecx,20
104
	 add ecx,20
106
	 mov edx,[counter]
105
	 mov edx,[counter]
107
	 add edx,45
106
	 add edx,45
108
	 add edx,1000000000000000000000000000000b
107
	 add edx,1000000000000000000000000000000b
109
	 mcall
108
	 mcall
110
 
109
 
111
	 add [Icon_X],19
110
	 add [Icon_X],19
112
 
111
 
113
	 inc [counter]
112
	 inc [counter]
114
	 cmp [counter],6
113
	 cmp [counter],6
115
	 jne next_button_zoom
114
	 jne next_button_zoom
116
 
115
 
117
 
116
 
118
	 ; button of palette
117
	 ; button of palette
119
	 mov [Icon_X],7+105+1
118
	 mov [Icon_X],7+105+1
120
	 mov [Icon_Y],20+15+4+25+1
119
	 mov [Icon_Y],20+15+4+25+1
121
 
120
 
122
	 mov eax,8
121
	 mov eax,8
123
	 mov ebx,[Icon_X]
122
	 mov ebx,[Icon_X]
124
	 mov ecx,[Icon_Y]
123
	 mov ecx,[Icon_Y]
125
	 dec ebx
124
	 dec ebx
126
	 dec ecx
125
	 dec ecx
127
	 shl ebx,16
126
	 shl ebx,16
128
	 shl ecx,16
127
	 shl ecx,16
129
	 add ebx,20
128
	 add ebx,20
130
	 add ecx,21
129
	 add ecx,21
131
	 mov edx,51
130
	 mov edx,51
132
	 add edx,1000000000000000000000000000000b
131
	 add edx,1000000000000000000000000000000b
133
	 mcall
132
	 mcall
134
 
133
 
135
	 ; button of color
134
	 ; button of color
136
	 mov [Icon_X],7+128+1
135
	 mov [Icon_X],7+128+1
137
	 mov [Icon_Y],20+15+4+25+1
136
	 mov [Icon_Y],20+15+4+25+1
138
 
137
 
139
	 mov eax,8
138
	 mov eax,8
140
	 mov ebx,[Icon_X]
139
	 mov ebx,[Icon_X]
141
	 mov ecx,[Icon_Y]
140
	 mov ecx,[Icon_Y]
142
	 dec ebx
141
	 dec ebx
143
	 dec ecx
142
	 dec ecx
144
	 shl ebx,16
143
	 shl ebx,16
145
	 shl ecx,16
144
	 shl ecx,16
146
	 add ebx,20
145
	 add ebx,20
147
	 add ecx,21
146
	 add ecx,21
148
	 mov edx,52
147
	 mov edx,52
149
	 add edx,1000000000000000000000000000000b
148
	 add edx,1000000000000000000000000000000b
150
	 mcall
149
	 mcall
151
 
150
 
152
	 mov eax,13
151
	 mov eax,13
153
	 mov ebx,136*65536+20
152
	 mov ebx,136*65536+20
154
	 mov ecx,65*65536+20
153
	 mov ecx,65*65536+20
155
	 mov edx,[Color]
154
	 mov edx,[Color]
156
	 mcall
155
	 mcall
157
 
156
 
158
	 ret
157
	 ret