Subversion Repositories Kolibri OS

Rev

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

Rev 6357 Rev 6359
Line 9... Line 9...
9
	stdcall [img_to_rgb2], ebx,edi ;преобразуем изображение к формату rgb
9
	stdcall [img_to_rgb2], ebx,edi ;преобразуем изображение к формату rgb
10
	stdcall [img_destroy], ebx ;удаляем временный буфер с параметрами изображения
10
	stdcall [img_destroy], ebx ;удаляем временный буфер с параметрами изображения
11
	ret
11
	ret
Line 12... Line 12...
12
 
12
 
13
draw_icons:
-
 
14
 
13
draw_icons:
15
	 mov [Icon_X],7
14
	mov [Icon_X],ci_panel_x_pos+2
Line 16... Line 15...
16
	 mov [Icon_Y],20+15+4
15
	mov [Icon_Y],ci_panel_y_pos+3
17
 
16
 
18
	 ;draw panel picture
17
	 ;draw panel picture
19
	 mov edx,[Icon_X]
18
	 mov edx,[Icon_X]
Line 26... Line 25...
26
 
25
 
Line 27... Line 26...
27
 
26
 
28
	 ;main buttons of instrumnts
-
 
29
 
27
	 ;main buttons of instrumnts
Line 30... Line 28...
30
	 and [counter],0
28
 
Line 31... Line 29...
31
	 mov [Icon_X],9
29
	 and [counter],0
32
	 mov [Icon_Y],21+15+4+1
30
	 mov [Icon_X],ci_panel_x_pos+4
33
 
31
 
34
   main_buttons:
32
   main_buttons:
35
 
33
 
36
	 mov ebx,[Icon_X]
34
	 mov ebx,[Icon_X]
37
	 mov ecx,[Icon_Y]
35
	 mov ecx,ci_panel_but_y1
Line 55... Line 53...
55
 
53
 
56
 
54
 
Line 57... Line -...
57
	 ;buttons of brushes(and lines width)
-
 
58
	 and [counter],0
55
	 ;buttons of brushes(and lines width)
Line 59... Line 56...
59
 
56
	 and [counter],0
Line 60... Line 57...
60
	 mov [Icon_X],8+1
57
 
61
	 mov [Icon_Y],20+15+4+25+1
58
	 mov [Icon_X],ci_panel_x_pos+4
62
 
59
 
63
	 next_button_brush:
60
	 next_button_brush:
64
 
61
 
65
	 mov ebx,[Icon_X]
62
	 mov ebx,[Icon_X]
66
	 mov ecx,[Icon_Y]
63
	 mov ecx,ci_panel_but_y2
Line 83... Line 80...
83
 
80
 
84
 
81
 
Line 85... Line -...
85
	 ;buttons of zoom
-
 
86
	 and [counter],0
82
	 ;buttons of zoom
Line 87... Line 83...
87
 
83
	 and [counter],0
Line 88... Line 84...
88
	 mov [Icon_X],8+155+1
84
 
89
	 mov [Icon_Y],20+15+4+25+1
85
	 mov [Icon_X],ci_panel_x_pos+159
90
 
86
 
91
	 next_button_zoom:
87
	 next_button_zoom:
92
 
88
 
93
	 mov ebx,[Icon_X]
89
	 mov ebx,[Icon_X]
94
	 mov ecx,[Icon_Y]
90
	 mov ecx,ci_panel_but_y2
Line 109... Line 105...
109
	 cmp [counter],6
105
	 cmp [counter],6
110
	 jne next_button_zoom
106
	 jne next_button_zoom
Line 111... Line 107...
111
 
107
 
112
 
-
 
113
	 ; button of palette
108
 
Line 114... Line 109...
114
	 mov [Icon_X],7+105+1
109
	 ; button of palette
115
	 mov [Icon_Y],19+15+4+25+1
110
	 mov [Icon_X],ci_panel_x_pos+108
116
 
111
 
117
	 mov ebx,[Icon_X]
112
	 mov ebx,[Icon_X]
118
	 mov ecx,[Icon_Y]
113
	 mov ecx,ci_panel_but_y2-1
119
	 dec ebx
114
	 dec ebx
120
	 dec ecx
115
	 dec ecx
Line 125... Line 120...
125
	 mov edx,51
120
	 mov edx,51
126
	 add edx,1000000000000000000000000000000b
121
	 add edx,1000000000000000000000000000000b
127
	 mcall SF_DEFINE_BUTTON
122
	 mcall SF_DEFINE_BUTTON
Line 128... Line 123...
128
 
123
 
129
	 ; button of color
-
 
130
	 mov [Icon_X],7+128+1
124
	 ; button of color
Line 131... Line 125...
131
	 mov [Icon_Y],19+15+4+25+1
125
	 mov [Icon_X],ci_panel_x_pos+131
132
 
126
 
133
	 mov ebx,[Icon_X]
127
	 mov ebx,[Icon_X]
134
	 mov ecx,[Icon_Y]
128
	 mov ecx,ci_panel_but_y1-1
135
	 dec ebx
129
	 dec ebx
136
	 dec ecx
130
	 dec ecx
137
	 shl ebx,16
131
	 shl ebx,16
138
	 shl ecx,16
132
	 shl ecx,16
139
	 add ebx,20
133
	 add ebx,20
140
	 add ecx,20
134
	 add ecx,20
141
	 mov edx,52
135
	 mov edx,52
Line 142... Line 136...
142
	 add edx,1000000000000000000000000000000b
136
	 add edx,1000000000000000000000000000000b
-
 
137
	 mcall SF_DEFINE_BUTTON
Line 143... Line 138...
143
	 mcall SF_DEFINE_BUTTON
138