Rev 6355 | Rev 6358 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6355 | Rev 6357 | ||
---|---|---|---|
Line 43... | Line 43... | ||
43 | call GetMouseCoordinats |
43 | call GetMouseCoordinats |
44 | mov eax,[MouseX] |
44 | mov eax,[MouseX] |
45 | mov ebx,[MouseY] |
45 | mov ebx,[MouseY] |
46 | mov ecx,[WorkScreen_SizeX] |
46 | mov ecx,[WorkScreen_SizeX] |
47 | mov edx,[WorkScreen_SizeY] |
47 | mov edx,[WorkScreen_SizeY] |
48 | add ecx,9 |
48 | add ecx,ci_scrollh_coord_x_min |
49 | add edx,89 |
49 | add edx,ci_scrollv_coord_y_min |
Line 50... | Line 50... | ||
50 | 50 | ||
51 | cmp eax,ecx |
51 | cmp eax,ecx |
Line 52... | Line 52... | ||
52 | jae mouse_scroll |
52 | jae mouse_scroll |
Line 72... | Line 72... | ||
72 | mov edi,[Scroll1MaxSizeY] |
72 | mov edi,[Scroll1MaxSizeY] |
73 | call columnus |
73 | call columnus |
74 | test eax,eax |
74 | test eax,eax |
75 | jz no_horizontal |
75 | jz no_horizontal |
Line 76... | Line 76... | ||
76 | 76 | ||
77 | mov eax,9 |
77 | mov eax,ci_scrollh_coord_x_min |
78 | mov ebx,[Scroll1CoordinatY] |
78 | mov ebx,[Scroll1CoordinatY] |
- | 79 | mov ecx,[Scroll1MaxSizeX] |
|
79 | mov ecx,[Scroll1MaxSizeX] |
80 | inc ecx |
80 | mov edx,14+10 |
81 | mov edx,14+10 |
81 | mov esi,7 |
- | |
82 | inc ecx |
82 | mov esi,7 |
Line 83... | Line 83... | ||
83 | call draw_volume_rectangle |
83 | call draw_volume_rectangle ; horizontal scrollbar clear |
84 | 84 | ||
85 | mov eax,[MouseX] |
85 | mov eax,[MouseX] |
86 | mov ebx,[Scroll1SizeX] |
86 | mov ebx,[Scroll1SizeX] |
87 | shr ebx,1 |
87 | shr ebx,1 |
88 | sub eax,ebx |
88 | sub eax,ebx |
89 | mov ecx,[MouseX] |
89 | mov ecx,[MouseX] |
90 | add ecx,ebx |
90 | add ecx,ebx |
91 | mov edx,8+1 |
91 | mov edx,ci_scrollh_coord_x_min |
92 | add edx,[Scroll1MaxSizeX] |
92 | add edx,[Scroll1MaxSizeX] |
93 | mov [Scroll1CoordinatX],eax |
93 | mov [Scroll1CoordinatX],eax |
Line 94... | Line 94... | ||
94 | sub eax,9 |
94 | sub eax,ci_scrollh_coord_x_min |
Line 95... | Line 95... | ||
95 | jns no_min_scroll |
95 | jns no_min_scroll |
96 | 96 | ||
97 | mov [Scroll1CoordinatX],9 |
97 | mov [Scroll1CoordinatX],ci_scrollh_coord_x_min |
Line 104... | Line 104... | ||
104 | sub edx,ebx |
104 | sub edx,ebx |
105 | mov [Scroll1CoordinatX],edx |
105 | mov [Scroll1CoordinatX],edx |
Line 106... | Line 106... | ||
106 | 106 | ||
107 | no_max_scroll: |
107 | no_max_scroll: |
108 | mov eax,[Scroll1CoordinatX] |
108 | mov eax,[Scroll1CoordinatX] |
109 | sub eax,9 |
109 | sub eax,ci_scrollh_coord_x_min |
110 | mov ebx,[Picture_SizeX] |
110 | mov ebx,[Picture_SizeX] |
111 | imul eax,ebx |
111 | imul eax,ebx |
112 | mov ebx,[Scroll1MaxSizeX] |
112 | mov ebx,[Scroll1MaxSizeX] |
113 | cdq |
113 | cdq |
Line 125... | Line 125... | ||
125 | call columnus |
125 | call columnus |
126 | test eax,eax |
126 | test eax,eax |
127 | jz no_vertical |
127 | jz no_vertical |
Line 128... | Line 128... | ||
128 | 128 | ||
129 | mov eax,[Scroll2CoordinatX] |
129 | mov eax,[Scroll2CoordinatX] |
130 | mov ebx,89 |
130 | mov ebx,ci_scrollv_coord_y_min |
131 | mov ecx,14+10 |
131 | mov ecx,14+10 |
132 | mov edx,[Scroll2MaxSizeY] |
- | |
133 | mov esi,7 |
132 | mov edx,[Scroll2MaxSizeY] |
- | 133 | inc edx |
|
134 | inc edx |
134 | mov esi,7 |
Line 135... | Line 135... | ||
135 | call draw_volume_rectangle |
135 | call draw_volume_rectangle ; vertical scrollbar clear |
136 | 136 | ||
137 | mov eax,[MouseY] |
137 | mov eax,[MouseY] |
138 | mov ebx,[Scroll2SizeY] |
138 | mov ebx,[Scroll2SizeY] |
139 | shr ebx,1 |
139 | shr ebx,1 |
140 | sub eax,ebx |
140 | sub eax,ebx |
141 | mov ecx,[MouseY] |
141 | mov ecx,[MouseY] |
142 | add ecx,ebx |
142 | add ecx,ebx |
143 | mov edx,89 |
143 | mov edx,ci_scrollv_coord_y_min |
Line 144... | Line 144... | ||
144 | add edx,[Scroll2MaxSizeY] |
144 | add edx,[Scroll2MaxSizeY] |
145 | mov [Scroll2CoordinatY],eax |
145 | mov [Scroll2CoordinatY],eax |
Line 146... | Line 146... | ||
146 | 146 | ||
Line 147... | Line 147... | ||
147 | sub eax,89 |
147 | sub eax,ci_scrollv_coord_y_min |
148 | jns no_min_scroll2 |
148 | jns no_min_scroll2 |
149 | 149 | ||
Line 157... | Line 157... | ||
157 | sub edx,ebx |
157 | sub edx,ebx |
158 | mov [Scroll2CoordinatY],edx |
158 | mov [Scroll2CoordinatY],edx |
Line 159... | Line 159... | ||
159 | 159 | ||
160 | no_max_scroll2: |
160 | no_max_scroll2: |
161 | mov eax,[Scroll2CoordinatY] |
161 | mov eax,[Scroll2CoordinatY] |
162 | sub eax,89 |
162 | sub eax,ci_scrollv_coord_y_min |
163 | mov ebx,[Picture_SizeY] |
163 | mov ebx,[Picture_SizeY] |
164 | imul eax,ebx |
164 | imul eax,ebx |
165 | mov ebx,[Scroll2MaxSizeY] |
165 | mov ebx,[Scroll2MaxSizeY] |
166 | cdq |
166 | cdq |
Line 181... | Line 181... | ||
181 | mov ecx,[Window_SizeX] |
181 | mov ecx,[Window_SizeX] |
182 | mov edx,[Window_SizeY] |
182 | mov edx,[Window_SizeY] |
183 | sub ecx,36 |
183 | sub ecx,36 |
184 | sub edx,35 |
184 | sub edx,35 |
Line 185... | Line 185... | ||
185 | 185 | ||
186 | cmp eax,9 |
186 | cmp eax,ci_scrollh_coord_x_min |
Line 187... | Line 187... | ||
187 | jle not_work_arrea |
187 | jle not_work_arrea |
188 | 188 | ||
Line 189... | Line 189... | ||
189 | cmp eax,ecx |
189 | cmp eax,ecx |
190 | jae not_work_arrea |
190 | jae not_work_arrea |
Line 191... | Line 191... | ||
191 | 191 | ||
192 | cmp ebx,20+15+1+50 |
192 | cmp ebx,ci_scrollv_coord_y_min |
193 | jle not_work_arrea |
193 | jle not_work_arrea |