Rev 2163 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2163 | Rev 2188 | ||
---|---|---|---|
Line 33... | Line 33... | ||
33 | je .mouse |
33 | je .mouse |
Line 34... | Line 34... | ||
34 | 34 | ||
35 | jmp .still |
35 | jmp .still |
36 | ;--------------------------------------------------------------------- |
36 | ;--------------------------------------------------------------------- |
- | 37 | .mouse: |
|
- | 38 | mov eax,option_group1 |
|
37 | .mouse: |
39 | mov ecx,[eax] |
38 | push dword option_boxes_bcgr |
40 | push dword option_boxes_bcgr |
- | 41 | call [option_box_mouse] |
|
- | 42 | cmp ecx,[eax] |
|
Line -... | Line 43... | ||
- | 43 | je .option_boxes_SCC |
|
39 | call [option_box_mouse] |
44 | |
40 | 45 | mov ebx,bgrmode |
|
41 | cmp [option_group1],op1 |
46 | cmp [eax],dword op1 |
42 | jne @f |
47 | jne @f |
43 | mov [bgrmode],dword 1 |
48 | mov [ebx],dword 1 |
44 | jmp .still |
49 | jmp .option_group1_color_set |
45 | ;--------------------------------------------------------------------- |
50 | ;--------------------------------------------------------------------- |
46 | @@: |
51 | @@: |
47 | cmp [option_group1],op2 |
52 | cmp [eax],dword op2 |
48 | jne @f |
53 | jne @f |
49 | mov [bgrmode],dword 2 |
54 | mov [ebx],dword 2 |
50 | jmp .still |
55 | jmp .option_group1_color_set |
51 | ;--------------------------------------------------------------------- |
56 | ;--------------------------------------------------------------------- |
52 | @@: |
57 | @@: |
53 | cmp [option_group1],op3 |
58 | cmp [eax],dword op3 |
54 | jne @f |
59 | jne @f |
55 | mov [bgrmode],dword 3 |
60 | mov [ebx],dword 3 |
56 | jmp .still |
61 | jmp .option_group1_color_set |
- | 62 | ;--------------------------------------------------------------------- |
|
- | 63 | @@: |
|
- | 64 | cmp [eax],dword op4 |
|
- | 65 | jne .option_boxes_SCC |
|
- | 66 | mov [ebx],dword 4 |
|
- | 67 | .option_group1_color_set: |
|
- | 68 | mov [bcgr_group_pointer],0 |
|
- | 69 | call .option_boxes_redraw |
|
- | 70 | jmp .still |
|
- | 71 | ;--------------------------------------------------------------------- |
|
- | 72 | .option_boxes_SCC: |
|
- | 73 | mov eax,[option_group3] |
|
57 | ;--------------------------------------------------------------------- |
74 | push dword option_boxes_SCC |
58 | @@: |
75 | call [option_box_mouse] |
- | 76 | cmp eax,[option_group3] |
|
- | 77 | je .still |
|
59 | ; cmp [option_group1],op4 |
78 | |
- | 79 | call .convert_1 |
|
- | 80 | mov [bcgr_group_pointer],1 |
|
- | 81 | call .option_boxes_redraw |
|
- | 82 | jmp .still |
|
- | 83 | ;--------------------------------------------------------------------- |
|
- | 84 | .tab: |
|
- | 85 | mov al,[bcgr_group_pointer] |
|
- | 86 | inc al |
|
- | 87 | and al,1 |
|
60 | ; jne .still |
88 | mov [bcgr_group_pointer],al |
61 | mov [bgrmode],dword 4 |
89 | call .option_boxes_redraw |
62 | jmp .still |
90 | jmp .still |
63 | ;--------------------------------------------------------------------- |
91 | ;--------------------------------------------------------------------- |
64 | .key: |
92 | .key: |
65 | mcall |
93 | mcall |
Line 66... | Line 94... | ||
66 | cmp ah,27 |
94 | cmp ah,27 |
67 | je .close |
95 | je .close |
Line -... | Line 96... | ||
- | 96 | ||
- | 97 | cmp ah,13 |
|
- | 98 | je .kok |
|
- | 99 | ||
- | 100 | cmp ah,9 |
|
- | 101 | je .tab |
|
- | 102 | ||
- | 103 | cmp [bcgr_group_pointer],1 |
|
- | 104 | je .key_option_group3 |
|
68 | 105 | ;--------------------------------------------------------------------- |
|
69 | cmp ah,13 |
106 | .key_option_group1: |
Line 70... | Line 107... | ||
70 | je .kok |
107 | mov ebx,bgrmode |
71 | 108 | ||
72 | cmp ah,178 ;up |
109 | cmp ah,178 ;up |
73 | jne .nofup |
110 | jne .nofup |
74 | 111 | ||
75 | cmp dword [bgrmode],1 |
112 | cmp [ebx],dword 1 |
76 | je .fdn |
113 | je .fdn |
77 | .fup: |
114 | .fup: |
78 | dec dword [bgrmode] |
115 | dec dword [ebx] |
Line 79... | Line 116... | ||
79 | jmp .flagcont |
116 | jmp .flagcont |
80 | ;--------------------------------------------------------------------- |
117 | ;-------------------------------------- |
81 | .nofup: |
118 | .nofup: |
82 | cmp ah,177 ;down |
119 | cmp ah,177 ;down |
83 | jne .still |
120 | jne .still |
- | 121 | ||
84 | 122 | cmp [ebx],dword 4 |
|
85 | cmp dword [bgrmode],4 |
123 | je .fup |
Line 86... | Line 124... | ||
86 | je .fup |
124 | .fdn: |
87 | .fdn: |
125 | inc dword [ebx] |
88 | inc dword [bgrmode] |
126 | .flagcont: |
89 | .flagcont: |
127 | mov eax,option_group1 |
90 | cmp [bgrmode],dword 1 |
128 | cmp [ebx],dword 1 |
91 | jne @f |
129 | jne @f |
92 | 130 | ||
Line 93... | Line 131... | ||
93 | mov [option_group1],op1 |
131 | mov [eax],dword op1 |
94 | call .draw_opt_boxes |
132 | call .draw_opt_boxes_bcgr |
95 | jmp .still |
133 | jmp .still |
96 | ;--------------------------------------------------------------------- |
134 | ;--------------------------------------- |
97 | @@: |
135 | @@: |
98 | cmp [bgrmode],dword 2 |
136 | cmp [ebx],dword 2 |
99 | jne @f |
137 | jne @f |
Line 100... | Line 138... | ||
100 | 138 | ||
101 | mov [option_group1],op2 |
139 | mov [eax],dword op2 |
- | 140 | call .draw_opt_boxes_bcgr |
|
- | 141 | jmp .still |
|
- | 142 | ;---------------------------------------- |
|
- | 143 | @@: |
|
- | 144 | cmp [ebx],dword 3 |
|
102 | call .draw_opt_boxes |
145 | jne @f |
103 | jmp .still |
146 | |
- | 147 | mov [eax],dword op3 |
|
- | 148 | call .draw_opt_boxes_bcgr |
|
- | 149 | jmp .still |
|
- | 150 | ;----------------------------------------- |
|
- | 151 | @@: |
|
- | 152 | mov [eax],dword op4 |
|
- | 153 | call .draw_opt_boxes_bcgr |
|
- | 154 | jmp .still |
|
- | 155 | ;--------------------------------------------------------------------- |
|
- | 156 | .key_option_group3: |
|
- | 157 | push eax |
|
- | 158 | call .convert_1 |
|
- | 159 | pop eax |
|
- | 160 | ||
- | 161 | cmp ah,178 ;up |
|
- | 162 | jne @f |
|
- | 163 | ||
- | 164 | dec word [ebx+2] |
|
104 | ;--------------------------------------------------------------------- |
165 | jmp .flagcont_1 |
- | 166 | ;------------------------------------------ |
|
- | 167 | @@: |
|
- | 168 | cmp ah,177 ;down |
|
- | 169 | jne @f |
|
105 | @@: |
170 | |
- | 171 | inc word [ebx+2] |
|
- | 172 | jmp .flagcont_1 |
|
- | 173 | ;------------------------------------------ |
|
- | 174 | @@: |
|
- | 175 | cmp ah,176 ;left |
|
- | 176 | jne @f |
|
- | 177 | ||
- | 178 | dec word [ebx] |
|
- | 179 | jmp .flagcont_1 |
|
- | 180 | ;------------------------------------------ |
|
106 | cmp [bgrmode],dword 3 |
181 | @@: |
107 | jne @f |
182 | cmp ah,179 ;right |
108 | 183 | jne .still |
|
- | 184 | ||
- | 185 | inc word [ebx] |
|
- | 186 | ;------------------------------------------ |
|
- | 187 | .flagcont_1: |
|
- | 188 | call .convert_2 |
|
- | 189 | call .convert_1 ;for additional check |
|
- | 190 | call .draw_opt_boxes_SCC |
|
- | 191 | jmp .still |
|
- | 192 | ;--------------------------------------------------------------------- |
|
- | 193 | .convert_1: |
|
- | 194 | mov eax,option_group3 |
|
- | 195 | mov ebx,Stretch_Crop_Corner |
|
- | 196 | cmp [eax],dword op_UL |
|
- | 197 | jne @f |
|
- | 198 | mov [ebx],dword 0 shl 16+0 |
|
- | 199 | jmp .option_group3_color_set |
|
- | 200 | ;---------------------------------------- |
|
- | 201 | @@: |
|
- | 202 | cmp [eax],dword op_UC |
|
- | 203 | jne @f |
|
- | 204 | mov [ebx],dword 0 shl 16+1 |
|
- | 205 | jmp .option_group3_color_set |
|
- | 206 | ;----------------------------------------- |
|
- | 207 | @@: |
|
- | 208 | cmp [eax],dword op_UR |
|
- | 209 | jne @f |
|
- | 210 | mov [ebx],dword 0 shl 16+2 |
|
- | 211 | jmp .option_group3_color_set |
|
- | 212 | ;----------------------------------------- |
|
- | 213 | @@: |
|
- | 214 | cmp [eax],dword op_CL |
|
- | 215 | jne @f |
|
- | 216 | mov [ebx],dword 1 shl 16+0 |
|
- | 217 | jmp .option_group3_color_set |
|
- | 218 | ;------------------------------------------ |
|
- | 219 | @@: |
|
- | 220 | cmp [eax],dword op_CC |
|
- | 221 | jne @f |
|
- | 222 | mov [ebx],dword 1 shl 16+1 |
|
- | 223 | jmp .option_group3_color_set |
|
- | 224 | ;------------------------------------------- |
|
- | 225 | @@: |
|
- | 226 | cmp [eax],dword op_CR |
|
- | 227 | jne @f |
|
- | 228 | mov [ebx],dword 1 shl 16+2 |
|
- | 229 | jmp .option_group3_color_set |
|
- | 230 | ;-------------------------------------------- |
|
- | 231 | @@: |
|
- | 232 | cmp [eax],dword op_DL |
|
- | 233 | jne @f |
|
- | 234 | mov [ebx],dword 2 shl 16+0 |
|
- | 235 | jmp .option_group3_color_set |
|
- | 236 | ;-------------------------------------------- |
|
- | 237 | @@: |
|
- | 238 | cmp [eax],dword op_DC |
|
- | 239 | jne @f |
|
- | 240 | mov [ebx],dword 2 shl 16+1 |
|
- | 241 | jmp .option_group3_color_set |
|
- | 242 | ;-------------------------------------------- |
|
- | 243 | @@: |
|
- | 244 | cmp [eax],dword op_DR |
|
- | 245 | jne .option_group3_color_set |
|
- | 246 | mov [ebx],dword 2 shl 16+2 |
|
- | 247 | .option_group3_color_set: |
|
- | 248 | ret |
|
- | 249 | ;--------------------------------------------------------------------- |
|
- | 250 | .convert_2: |
|
- | 251 | mov eax,Stretch_Crop_Corner |
|
- | 252 | mov ebx,option_group3 |
|
- | 253 | cmp [eax],dword 0 shl 16+0 |
|
- | 254 | jne @f |
|
- | 255 | mov [ebx],dword op_UL |
|
- | 256 | jmp .Stretch_Crop_Corner_set |
|
- | 257 | ;---------------------------------------- |
|
- | 258 | @@: |
|
- | 259 | cmp [eax],dword 0 shl 16+1 |
|
- | 260 | jne @f |
|
- | 261 | mov [ebx],dword op_UC |
|
- | 262 | jmp .Stretch_Crop_Corner_set |
|
- | 263 | ;----------------------------------------- |
|
- | 264 | @@: |
|
- | 265 | cmp [eax],dword 0 shl 16+2 |
|
- | 266 | jne @f |
|
- | 267 | mov [ebx],dword op_UR |
|
- | 268 | jmp .Stretch_Crop_Corner_set |
|
- | 269 | ;----------------------------------------- |
|
- | 270 | @@: |
|
- | 271 | cmp [eax],dword 1 shl 16+0 |
|
- | 272 | jne @f |
|
- | 273 | mov [ebx],dword op_CL |
|
- | 274 | jmp .Stretch_Crop_Corner_set |
|
- | 275 | ;------------------------------------------ |
|
- | 276 | @@: |
|
- | 277 | cmp [eax],dword 1 shl 16+1 |
|
- | 278 | jne @f |
|
- | 279 | mov [ebx],dword op_CC |
|
- | 280 | jmp .Stretch_Crop_Corner_set |
|
- | 281 | ;------------------------------------------- |
|
- | 282 | @@: |
|
- | 283 | cmp [eax],dword 1 shl 16+2 |
|
- | 284 | jne @f |
|
- | 285 | mov [ebx],dword op_CR |
|
- | 286 | jmp .Stretch_Crop_Corner_set |
|
- | 287 | ;-------------------------------------------- |
|
- | 288 | @@: |
|
- | 289 | cmp [eax],dword 2 shl 16+0 |
|
- | 290 | jne @f |
|
- | 291 | mov [ebx],dword op_DL |
|
- | 292 | jmp .Stretch_Crop_Corner_set |
|
- | 293 | ;-------------------------------------------- |
|
- | 294 | @@: |
|
- | 295 | cmp [eax],dword 2 shl 16+1 |
|
- | 296 | jne @f |
|
- | 297 | mov [ebx],dword op_DC |
|
109 | mov [option_group1],op3 |
298 | jmp .Stretch_Crop_Corner_set |
110 | call .draw_opt_boxes |
299 | ;-------------------------------------------- |
111 | jmp .still |
- | |
112 | ;--------------------------------------------------------------------- |
- | |
113 | @@: |
300 | @@: |
114 | mov [option_group1],op4 |
301 | cmp [eax],dword 2 shl 16+2 |
115 | call .draw_opt_boxes |
302 | jne .Stretch_Crop_Corner_set |
116 | jmp .still |
303 | mov [ebx],dword op_DR |
117 | ;--------------------------------------------------------------------- |
304 | .Stretch_Crop_Corner_set: |
Line 139... | Line 326... | ||
139 | ; ********************************************* |
326 | ; ********************************************* |
140 | .draw_window: |
327 | .draw_window: |
141 | mcall 12,1 |
328 | mcall 12,1 |
142 | xor eax,eax |
329 | xor eax,eax |
143 | xor esi,esi |
330 | xor esi,esi |
144 | mcall ,<100,200>,<100,200>,0x13909090,,labelt4 |
331 | mcall ,<100,300>,<100,150>,0x13909090,,labelt4 |
145 | mcall 8,<70,40>,<110,20>,4,0xdddddd |
332 | mcall 8,<70,40>,<110,20>,4,0xdddddd |
146 | mcall 4,<46,28>,0xffffff,bgrdtext,bgrdtext.size |
333 | mcall 4,<46,28>,0xffffff,bgrdtext,bgrdtext.size |
147 | add ebx,40*65536+88 |
334 | add ebx,40*65536+88 |
148 | xor ecx,ecx |
335 | xor ecx,ecx |
149 | mcall ,,,ok_btn,ok_btn.size |
336 | mcall ,,,ok_btn,ok_btn.size |
150 | call .draw_opt_boxes |
337 | call .option_boxes_redraw |
151 | ; mcall 47,0x80000,[PID4],<200, 5>,0xffffff |
338 | ; mcall 47,0x80000,[PID4],<200, 5>,0xffffff |
152 | mcall 12,2 |
339 | mcall 12,2 |
153 | ret |
340 | ret |
154 | ;--------------------------------------------------------------------- |
341 | ;--------------------------------------------------------------------- |
- | 342 | .option_boxes_redraw: |
|
- | 343 | call .draw_opt_boxes_bcgr |
|
- | 344 | call .draw_opt_boxes_SCC |
|
- | 345 | ret |
|
- | 346 | ;--------------------------------------------------------------------- |
|
155 | .draw_opt_boxes: |
347 | .draw_opt_boxes_bcgr: |
- | 348 | mov edx,0x13909090 |
|
- | 349 | cmp [bcgr_group_pointer],0 |
|
- | 350 | jne @f |
|
- | 351 | ||
- | 352 | mov edx,0xffff80 |
|
- | 353 | @@: |
|
- | 354 | mcall 13,<59,14>,<39,59>, |
|
156 | push dword option_boxes_bcgr |
355 | push dword option_boxes_bcgr |
157 | call [option_box_draw] |
356 | call [option_box_draw] |
158 | ret200,>46,28>110,20>70,40>100,200>100,200> |
357 | ret |
159 | 358 | ;--------------------------------------------------------------------- |
|
- | 359 | .draw_opt_boxes_SCC: |
|
- | 360 | mov edx,0x13909090 |
|
- | 361 | cmp [bcgr_group_pointer],1 |
|
- | 362 | jne @f |
|
- | 363 | ||
- | 364 | mov edx,0xffff80 |
|
- | 365 | @@: |
|
- | 366 | mcall 13,<198,70>,<38,70>, |
|
- | 367 | push dword option_boxes_SCC |
|
- | 368 | call [option_box_draw] |
|
- | 369 | ret38,70>198,70>39,59>59,14>200,>46,28>110,20>70,40>100,150>100,300> |
|
- | 370 | ||
160 | 371 |