Subversion Repositories Kolibri OS

Rev

Rev 1632 | Rev 1643 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1632 Rev 1636
Line 282... Line 282...
282
	 cmp [type],'BM'
282
	 cmp [type],'BM'
283
	 jne no_unpakcing_bmp_file
283
	 jne no_unpakcing_bmp_file
284
	    ;BMP DECODER
284
	    ;BMP DECODER
285
	    call bmptoimg
285
	    call bmptoimg
286
	    mov [save_flag],1
286
	    mov [save_flag],1
-
 
287
		jmp	draw_1
-
 
288
		
287
	 no_unpakcing_bmp_file:
289
	 no_unpakcing_bmp_file:
Line 288... Line 290...
288
 
290
 
289
 
291
 
Line 294... Line 296...
294
	   call ReadGIF
296
	   call ReadGIF
295
	   mov [save_flag],1
297
	   mov [save_flag],1
296
	 no_unpakcing_file:
298
	 no_unpakcing_file:
Line 297... Line 299...
297
 
299
 
-
 
300
	 call load_icons
298
	 call load_icons
301
draw_1:	
Line 299... Line 302...
299
	 call drawwin
302
	 call drawwin
Line 300... Line 303...
300
 
303
 
Line 333... Line 336...
333
	 cmp [number_menu],4
336
	 cmp [number_menu],4
334
	 jne no_save
337
	 jne no_save
Line 335... Line 338...
335
 
338
 
336
;	 savedialog drawwin,save1,save2,file_path
339
;	 savedialog drawwin,save1,save2,file_path
-
 
340
;---------------------------------------------------------------------
-
 
341
; replace extension to '.bmp'
-
 
342
	push	eax esi
-
 
343
	mov	esi,[OpenDialog_data.filename_area]
-
 
344
	xor	eax,eax
-
 
345
	cld
-
 
346
@@:
-
 
347
	lodsb
-
 
348
	test	eax,eax
-
 
349
	jnz	@r
-
 
350
	sub esi,5
-
 
351
	cmp	[esi],byte '.'
-
 
352
	jne	@f
-
 
353
	mov [esi],dword '.bmp'
-
 
354
@@:
-
 
355
	pop	esi eax
337
;---------------------------------------------------------------------
356
;---------------------------------------------------------------------
Line 338... Line 357...
338
	mov	[OpenDialog_data.type],1 ; save
357
	mov	[OpenDialog_data.type],1 ; save
339
	
358