Rev 2432 | Rev 6763 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2432 | Rev 2628 | ||
---|---|---|---|
Line 156... | Line 156... | ||
156 | check_boxes_set_sys_color2 check_boxes,check_boxes_end,sc; | |
156 | check_boxes_set_sys_color2 check_boxes,check_boxes_end,sc; | |
157 | ; check_boxes_set_sys_color check_boxes,check_boxes_end,sc ; | |
157 | ; check_boxes_set_sys_color check_boxes,check_boxes_end,sc ; | |
158 | edit_boxes_set_sys_color editboxes,editboxes_end,sc ; / |
158 | edit_boxes_set_sys_color editboxes,editboxes_end,sc ; / |
Line 159... | Line 159... | ||
159 | 159 | ||
- | 160 | get_screen_prop scr ; ¯®«ãç ¥¬ ¨ä®à¬ æ¨î ®¡ íªà ¥ |
|
- | 161 | ;------------------------------------------------------------------------------ |
|
- | 162 | ; Boot with "DIRECT" parameter - get screen and save |
|
- | 163 | mov eax,cmdstr |
|
- | 164 | cmp [eax],byte 0 |
|
- | 165 | je no_boot |
|
- | 166 | ||
- | 167 | cmp [eax],dword 'DIRE' |
|
- | 168 | jne no_boot |
|
- | 169 | ||
- | 170 | cmp [eax+4],word 'CT' |
|
- | 171 | jne no_boot |
|
- | 172 | ||
- | 173 | and [ch2.flags],dword 0 |
|
- | 174 | or [ch5.flags],dword 1 |
|
- | 175 | and [ch3.flags],dword 0 |
|
- | 176 | mov [OpenDialog_data.draw_window],dword draw_window_direct |
|
- | 177 | ||
- | 178 | call shoot |
|
- | 179 | jmp close |
|
- | 180 | ;------------------------------------------------------------------------------ |
|
- | 181 | draw_window_direct: |
|
- | 182 | mcall 12,1 |
|
- | 183 | mcall 14 |
|
- | 184 | ; eax = [xsize]*65536 + [ysize] |
|
- | 185 | mov ebx,eax |
|
- | 186 | shr ebx,17 |
|
- | 187 | sub ebx,100 |
|
- | 188 | shl ebx,16 |
|
- | 189 | mov bx,200 |
|
- | 190 | mov ecx,eax |
|
- | 191 | and ecx,0xffff |
|
- | 192 | shr ecx,1 |
|
- | 193 | sub ecx,50 |
|
- | 194 | shl ecx,16 |
|
- | 195 | mov cx,100 |
|
- | 196 | xor eax,eax |
|
- | 197 | xor esi,esi |
|
- | 198 | mcall ,,,0x34ffffff,,grab_text |
|
- | 199 | ||
- | 200 | mcall 4,<10,30>,0x90000000,saving |
|
- | 201 | ||
- | 202 | mcall 12,2 |
|
- | 203 | ret |
|
- | 204 | ;------------------------------------------------------------------------------ |
|
160 | get_screen_prop scr ; ¯®«ãç ¥¬ ¨ä®à¬ æ¨î ®¡ íªà ¥ |
205 | no_boot: |
161 | call draw_window ; ¯¥à¥à¨á®¢ë¢ ¥¬ ®ª® |
206 | call draw_window ; ¯¥à¥à¨á®¢ë¢ ¥¬ ®ª® |
162 | still: |
207 | still: |
Line 163... | Line 208... | ||
163 | wait_event red,key,button,mouse,ipc,still ; ¦¤¥¬ ᮡë⨩ |
208 | wait_event red,key,button,mouse,ipc,still ; ¦¤¥¬ ᮡë⨩ |
Line 410... | Line 455... | ||
410 | ret |
455 | ret |
411 | @@: |
456 | @@: |
412 | bt dword [ch5.flags],1 ; ¢ª«î祮 «¨ ¢â®á®åà ¥¨¥ ? |
457 | bt dword [ch5.flags],1 ; ¢ª«î祮 «¨ ¢â®á®åà ¥¨¥ ? |
413 | jnc @f |
458 | jnc @f |
Line -... | Line 459... | ||
- | 459 | ||
414 | 460 | call [OpenDialog_data.draw_window] |
|
415 | ; invoke OpenDialog |
461 | ; invoke OpenDialog |
416 | push dword OpenDialog_data |
462 | push dword OpenDialog_data |
417 | call [OpenDialog_Start] |
463 | call [OpenDialog_Start] |
418 | cmp [OpenDialog_data.status],1 |
464 | cmp [OpenDialog_data.status],1 |
Line 421... | Line 467... | ||
421 | .1: |
467 | .1: |
422 | ; prepare for PathShow |
468 | ; prepare for PathShow |
423 | push dword PathShow_data_1 |
469 | push dword PathShow_data_1 |
424 | call [PathShow_prepare] |
470 | call [PathShow_prepare] |
Line -... | Line 471... | ||
- | 471 | ||
- | 472 | call [OpenDialog_data.draw_window] |
|
425 | 473 | ||
426 | call save_file |
474 | call save_file |
Line 427... | Line 475... | ||
427 | @@: |
475 | @@: |
428 | 476 |