1 ;---------------------------------------------------------------------
\r
7 mov [press_Enter_flag],al
\r
9 mov eax,[zoom_factors]
\r
10 mov [zoom_factors_old],eax
\r
12 mov eax,[scaling_mode]
\r
13 mov [scaling_mode_old],eax
\r
15 call get_window_param_1
\r
16 mov eax,[window_start_x]
\r
17 mov [window_start_x_old],eax
\r
18 mov eax,[window_start_y]
\r
19 mov [window_start_y_old],eax
\r
20 mov eax,[window_high]
\r
21 mov [window_high_old],eax
\r
22 mov eax,[window_width]
\r
23 mov [window_width_old],eax
\r
24 ;----------------------------------------
\r
25 ; get current work area
\r
27 mov [work_area_LR_old],eax
\r
28 mov [work_area_TB_old],ebx
\r
29 ;----------------------------------------
\r
33 mov eax,scaling_mode
\r
35 mov [eax],ebx ;dword 0
\r
36 mov [zoom_factors],dword zoom_factors.1
\r
53 ;----------------------------------------
\r
58 ;----------------------------------------
\r
59 mov eax,[fill_color]
\r
60 mov [fill_color_old],eax
\r
62 mov [fill_color],eax
\r
65 ;----------------------------------------
\r
70 je .animation_handler
\r
72 cmp eax,1 ; ïåðåðèñîâàòü îêíî ?
\r
73 je .red ; åñëè äà - íà ìåòêó red
\r
74 cmp eax,2 ; íàæàòà êëàâèøà ?
\r
75 je .key ; åñëè äà - íà key
\r
76 cmp eax,3 ; íàæàòà êíîïêà ?
\r
77 je .button ; åñëè äà - íà button
\r
78 jmp .still ; åñëè äðóãîå ñîáûòèå - â íà÷àëî öèêëà
\r
79 ;----------------------------------------
\r
84 ; cmp [Animation_timer],eax
\r
86 ; call animation_handler.draw_image
\r
89 cmp eax,1 ; ïåðåðèñîâàòü îêíî ?
\r
90 je .red ; åñëè äà - íà ìåòêó red
\r
91 cmp eax,2 ; íàæàòà êëàâèøà ?
\r
92 je .key ; åñëè äà - íà key
\r
93 cmp eax,3 ; íàæàòà êíîïêà ?
\r
94 je .button ; åñëè äà - íà button
\r
96 cmp [Animation_timer],eax
\r
97 ja .animation_handler
\r
99 mov al,[Disposal_Method]
\r
102 call restore_background
\r
107 call restore_previous_frame
\r
111 call copy_next_frame
\r
115 ; call animation_handler.draw_image
\r
117 ;----------------------------------------
\r
120 cmp [extended_key],1
\r
126 mov [extended_key],1
\r
130 je .restore_main_window
\r
132 je .restore_main_window_1
\r
134 ;----------------------------------------
\r
136 mov [extended_key],0
\r
137 mov [current_key_code],ah
\r
148 je .restore_main_window_1
\r
150 cmp ah,183 ; Print Screen - Slides Show
\r
153 ;----------------------------------------
\r
156 cmp ah,1 ; button id=1 ?
\r
158 ; jmp .still ;red_1
\r
161 call restore_work_area
\r
163 ;---------------------------------------------------------------------
\r
164 .restore_main_window_1:
\r
165 cmp [press_Enter_flag],1
\r
166 je .restore_main_window
\r
167 inc [press_Enter_flag]
\r
169 ;---------------------------------------------------------------------
\r
170 .restore_main_window:
\r
171 call restore_work_area
\r
173 mov eax,[zoom_factors_old]
\r
174 mov [zoom_factors],eax
\r
176 mov eax,[scaling_mode_old]
\r
177 mov [scaling_mode],eax
\r
179 mov ebx,[window_start_x_old]
\r
180 mov ecx,[window_start_y_old]
\r
181 mov edx,[window_width_old]
\r
182 mov esi,[window_high_old]
\r
185 ; call get_window_param
\r
186 mov eax,[fill_color_old]
\r
187 mov [fill_color],eax
\r
194 mov [redraw_wallpaper_flag],1
\r
196 ;---------------------------------------------------------------------
\r
199 mcall 0,<0,800>,<0,600>,0x41000000,0,0
\r
200 ; call get_window_param_1
\r
205 ;---------------------------------------------------------------------
\r
213 mov [wa_width_1],ax
\r
214 mov [wa_width_2],ax
\r
215 mov [image_start_coordinates],0
\r
216 mov [background_color],0
\r
218 mov [background_color],0xffffff
\r
220 ;---------------------------------------------------------------------
\r
221 get_window_param_1:
\r
222 mcall 9, procinfo, -1
\r
224 mov [window_start_x],eax
\r
226 mov [window_start_y],eax
\r
228 mov [window_high],eax
\r
230 mov [window_width],eax
\r
232 mov [window_status],eax
\r
234 ;----------------------------------------
\r
236 ; restore old work area
\r
237 mov ecx,[work_area_LR_old]
\r
238 mov edx,[work_area_TB_old]
\r
241 ;---------------------------------------------------------------------
\r
244 cmp [load_file_number],eax
\r
245 je full_screen.still
\r
246 dec [load_file_number]
\r
247 jmp right_limit_1.2
\r
248 ;----------------------------------------
\r
250 mov eax,[load_directory_pointer]
\r
256 cmp [load_file_number],eax
\r
257 je full_screen.still
\r
258 inc [load_file_number]
\r
259 jmp right_limit_1.2
\r
260 ;----------------------------------------
\r
263 jmp right_limit_1.1
\r
264 ;----------------------------------------
\r
266 mov eax,[load_directory_pointer]
\r
273 cmp [load_file_number],eax
\r
274 je full_screen.still
\r
275 mov [load_file_number],eax
\r
277 imul ebx,[load_file_number],304
\r
279 add ebx,[load_directory_pointer]
\r
282 mov edi,plugin_pach
\r
283 call copy_file_path
\r
285 mov esi,plugin_pach
\r
292 mov [open_file_flag],0
\r
301 call load_directory.copy_dir_path
\r
303 ; call get_window_param
\r
304 ; test [window_status],1b
\r
305 ; jz @f ;draw_still
\r
306 ; mov [no_draw_window],1
\r
307 ;*** call draw_other
\r
308 ; mov [no_draw_window],0
\r
312 ; call .draw_window
\r
313 call full_screen.draw_image
\r
315 mov al,[old_key_code]
\r
316 mov ah,[current_key_code]
\r
317 mov [old_key_code],ah
\r
319 jne full_screen.still ;key.extended_key ;still
\r
322 cmp [extended_key],1
\r
325 jnz full_screen.still
\r
328 mov [extended_key],1
\r
331 jmp full_screen.still
\r
333 mov [extended_key],0
\r
334 mov [current_key_code],ah
\r
337 mov ah,[current_key_code]
\r
338 mov [old_key_code],ah
\r
339 jmp full_screen.extended_key ;key.extended_key
\r
340 ;---------------------------------------------------------------------
\r
342 mov eax,[load_directory_pointer]
\r
343 cmp [eax+4],dword 1
\r
344 jbe full_screen.still
\r
350 call full_screen.draw_window
\r
361 ;-------------------------------------------
\r
364 cmp [extended_key],1
\r
370 mov [extended_key],1
\r
374 je full_screen.still
\r
376 je full_screen.still
\r
379 mov [extended_key],0
\r
380 mov [current_key_code],ah
\r
382 ;-------------------------------------------
\r
384 mov eax,17 ; get id
\r
386 cmp ah,1 ; button id=1 ?
\r
387 je full_screen.exit ;START.exit
\r
390 je full_screen.still
\r
392 ;-------------------------------------------
\r
395 ; add eax,[slide_show_delay] ;500
\r
398 mov eax,[load_directory_pointer]
\r
404 cmp [load_file_number],eax
\r
405 je full_screen.still
\r
406 inc [load_file_number]
\r
407 imul ebx,[load_file_number],304
\r
409 add ebx,[load_directory_pointer]
\r
412 mov edi,plugin_pach
\r
413 call copy_file_path
\r
415 mov esi,plugin_pach
\r
420 mov [open_file_flag],0
\r
429 ; call get_window_param
\r
430 ; test [window_status],1b
\r
431 ; jz @f ;draw_still
\r
432 ; mov [no_draw_window],1
\r
434 ; mov [no_draw_window],0
\r
435 ; jmp slide_show_1 ;.3
\r
438 call load_directory.copy_dir_path
\r
439 call full_screen.draw_image
\r
443 add eax,[slide_show_delay] ;500
\r
446 ;---------------------------------------------------------------------
\r