Rev 552 | Rev 6342 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 552 | Rev 2038 | ||
---|---|---|---|
Line 27... | Line 27... | ||
27 | 27 | ||
Line 28... | Line 28... | ||
28 | 28 | ||
29 | ;main buttons of instrumnts |
29 | ;main buttons of instrumnts |
30 | 30 | ||
Line 31... | Line 31... | ||
31 | and [counter],0 |
31 | and [counter],0 |
Line 32... | Line 32... | ||
32 | mov [Icon_X],8 |
32 | mov [Icon_X],9 |
33 | mov [Icon_Y],20+15+4+1 |
33 | mov [Icon_Y],21+15+4+1 |
34 | 34 | ||
35 | main_buttons: |
35 | main_buttons: |
36 | 36 | ||
37 | mov eax,8 |
37 | mov eax,8 |
38 | mov ebx,[Icon_X] |
38 | mov ebx,[Icon_X] |
39 | mov ecx,[Icon_Y] |
39 | mov ecx,[Icon_Y] |
40 | dec ebx |
40 | dec ebx |
41 | dec ecx |
41 | dec ecx |
42 | shl ebx,16 |
42 | shl ebx,16 |
43 | shl ecx,16 |
43 | shl ecx,16 |
44 | add ebx,19 |
44 | add ebx,18 |
Line 57... | Line 57... | ||
57 | 57 | ||
58 | 58 | ||
Line 59... | Line 59... | ||
59 | ;buttons of brushes(and lines width) |
59 | ;buttons of brushes(and lines width) |
60 | and [counter],0 |
60 | and [counter],0 |
Line 61... | Line 61... | ||
61 | 61 | ||
Line 62... | Line 62... | ||
62 | mov [Icon_X],7+1 |
62 | mov [Icon_X],8+1 |
Line 69... | Line 69... | ||
69 | mov ecx,[Icon_Y] |
69 | mov ecx,[Icon_Y] |
70 | dec ebx |
70 | dec ebx |
71 | dec ecx |
71 | dec ecx |
72 | shl ebx,16 |
72 | shl ebx,16 |
73 | shl ecx,16 |
73 | shl ecx,16 |
74 | add ebx,19 |
74 | add ebx,18 |
75 | add ecx,20 |
75 | add ecx,19 |
76 | mov edx,[counter] |
76 | mov edx,[counter] |
77 | add edx,40 |
77 | add edx,40 |
78 | add edx,1000000000000000000000000000000b |
78 | add edx,1000000000000000000000000000000b |
79 | mcall |
79 | mcall |
Line 86... | Line 86... | ||
86 | 86 | ||
87 | 87 | ||
Line 88... | Line 88... | ||
88 | ;buttons of zoom |
88 | ;buttons of zoom |
89 | and [counter],0 |
89 | and [counter],0 |
Line 90... | Line 90... | ||
90 | 90 | ||
Line 91... | Line 91... | ||
91 | mov [Icon_X],7+155+1 |
91 | mov [Icon_X],8+155+1 |
Line 98... | Line 98... | ||
98 | mov ecx,[Icon_Y] |
98 | mov ecx,[Icon_Y] |
99 | dec ebx |
99 | dec ebx |
100 | dec ecx |
100 | dec ecx |
101 | shl ebx,16 |
101 | shl ebx,16 |
102 | shl ecx,16 |
102 | shl ecx,16 |
103 | add ebx,19 |
103 | add ebx,18 |
104 | add ecx,20 |
104 | add ecx,19 |
105 | mov edx,[counter] |
105 | mov edx,[counter] |
106 | add edx,45 |
106 | add edx,45 |
107 | add edx,1000000000000000000000000000000b |
107 | add edx,1000000000000000000000000000000b |
108 | mcall |
108 | mcall |
Line 114... | Line 114... | ||
114 | jne next_button_zoom |
114 | jne next_button_zoom |
Line 115... | Line 115... | ||
115 | 115 | ||
116 | 116 | ||
117 | ; button of palette |
117 | ; button of palette |
Line 118... | Line 118... | ||
118 | mov [Icon_X],7+105+1 |
118 | mov [Icon_X],7+105+1 |
119 | mov [Icon_Y],20+15+4+25+1 |
119 | mov [Icon_Y],19+15+4+25+1 |
120 | 120 | ||
121 | mov eax,8 |
121 | mov eax,8 |
Line 131... | Line 131... | ||
131 | add edx,1000000000000000000000000000000b |
131 | add edx,1000000000000000000000000000000b |
132 | mcall |
132 | mcall |
Line 133... | Line 133... | ||
133 | 133 | ||
134 | ; button of color |
134 | ; button of color |
135 | mov [Icon_X],7+128+1 |
135 | mov [Icon_X],7+128+1 |
Line 136... | Line 136... | ||
136 | mov [Icon_Y],20+15+4+25+1 |
136 | mov [Icon_Y],19+15+4+25+1 |
137 | 137 | ||
138 | mov eax,8 |
138 | mov eax,8 |
139 | mov ebx,[Icon_X] |
139 | mov ebx,[Icon_X] |
140 | mov ecx,[Icon_Y] |
140 | mov ecx,[Icon_Y] |
141 | dec ebx |
141 | dec ebx |
142 | dec ecx |
142 | dec ecx |
143 | shl ebx,16 |
143 | shl ebx,16 |
144 | shl ecx,16 |
144 | shl ecx,16 |
145 | add ebx,20 |
145 | add ebx,20 |
146 | add ecx,21 |
146 | add ecx,20 |
147 | mov edx,52 |
147 | mov edx,52 |
Line 148... | Line 148... | ||
148 | add edx,1000000000000000000000000000000b |
148 | add edx,1000000000000000000000000000000b |
149 | mcall |
149 | mcall |
150 | 150 | ||
151 | mov eax,13 |
151 | mov eax,13 |
152 | mov ebx,136*65536+20 |
152 | mov ebx,136*65536+19 |
Line 153... | Line 153... | ||
153 | mov ecx,65*65536+20 |
153 | mov ecx,64*65536+19 |