Subversion Repositories Kolibri OS

Rev

Rev 6371 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6362 IgorA 1
macro instrument_set m_num, code
2
{
3
local no_instrument
4
cmp [number_menu],m_num
5
jne no_instrument
6
	mov	[Current_instrument],code
7
	call TakeButtonInstruments
8
	jmp end_menu
9
no_instrument:
10
}
11
 
255 heavyiron 12
;-----------------------------------------------------------
13
;-----------instruments of menu-----------------------------
14
;-----------------------------------------------------------
6362 IgorA 15
align 4
255 heavyiron 16
TakeInstruments:
1643 mario79 17
;|||||||||||||||||||FILE||||||||||||||||||||||
18
	cmp	[number_panel],7
19
	jne	no_file
255 heavyiron 20
 
6359 IgorA 21
; <<< New >>>
1643 mario79 22
	cmp	[number_menu],1
23
	jne	no_new
255 heavyiron 24
 
6359 IgorA 25
	call dialog2_draw
255 heavyiron 26
 
1643 mario79 27
	mov	edx,1000000000000000000000000000000b+1000
6342 IgorA 28
	mcall SF_DEFINE_BUTTON,<177,40>,<115,14>,
255 heavyiron 29
 
1643 mario79 30
	mov	edx,1000000000000000000000000000000b+1001
6359 IgorA 31
	mcall ,,<139,14>,
255 heavyiron 32
 
1643 mario79 33
	mov	edx,1000000000000000000000000000000b+1002
6359 IgorA 34
	mcall ,,<170,15>
255 heavyiron 35
 
1643 mario79 36
no_activate_space:
6359 IgorA 37
	mcall SF_SLEEP, 5 ;fix cpu use 100%
6342 IgorA 38
	mcall SF_WAIT_EVENT
255 heavyiron 39
 
6359 IgorA 40
	cmp eax,1 ;redraw window
41
	jne @f
42
		call dialog2_draw
43
		jmp no_activate_space
44
	@@:
255 heavyiron 45
 
6359 IgorA 46
	cmp eax,3 ;press button
47
	jne no_activate_space
255 heavyiron 48
 
6342 IgorA 49
	mcall SF_GET_BUTTON
1643 mario79 50
	shr	eax,8
255 heavyiron 51
 
1643 mario79 52
	cmp	eax,1000
53
	jl	no_activate_space
255 heavyiron 54
 
1643 mario79 55
	cmp	eax,1000
56
	jne	no_picture_size_x
255 heavyiron 57
 
1643 mario79 58
	mov	eax,180
59
	mov	ebx,119
60
	mov	ecx,5
61
	call	dialog_line
255 heavyiron 62
 
1643 mario79 63
	mov	eax,string_
64
	mov	ebx,13
65
	call	find_symvol
255 heavyiron 66
 
1643 mario79 67
	dec	eax
68
	mov	[length_number],eax
69
	mov	eax,string_
6359 IgorA 70
	call str_to_int
255 heavyiron 71
 
1643 mario79 72
	mov	[Picture_SizeX],eax
73
	jmp	no_activate_space
74
;---------------------------------------------------------------------
75
no_picture_size_x:
76
	cmp	eax,1001
77
	jne	no_picture_size_y
255 heavyiron 78
 
1643 mario79 79
	mov	eax,180
80
	mov	ebx,119+24
81
	mov	ecx,5
82
	call	dialog_line
255 heavyiron 83
 
1643 mario79 84
	mov	eax,string_
85
	mov	ebx,13
86
	call	find_symvol
255 heavyiron 87
 
1643 mario79 88
	dec	eax
89
	mov	[length_number],eax
90
	mov	eax,string_
6359 IgorA 91
	call str_to_int
255 heavyiron 92
 
1643 mario79 93
	mov	[Picture_SizeY],eax
94
	jmp	no_activate_space
95
;---------------------------------------------------------------------
96
no_picture_size_y:
97
	cmp	eax,1002
98
	jne	no_activate_space
255 heavyiron 99
 
1643 mario79 100
exit_new:
101
	mov	edx,11100000000000000000000000000000b+1002
6359 IgorA 102
	mcall SF_DEFINE_BUTTON,<177,40>,<170,15>
255 heavyiron 103
 
1643 mario79 104
	mov	edx,11100000000000000000000000000000b+1001
6359 IgorA 105
	mcall	,,<139,14>
255 heavyiron 106
 
1643 mario79 107
	mov	edx,11100000000000000000000000000000b+1000
108
	mcall	,,<115,14>
255 heavyiron 109
 
1643 mario79 110
;get memory for new picture
6359 IgorA 111
	call GetMemory
255 heavyiron 112
 
1643 mario79 113
	and	[save_flag],0
255 heavyiron 114
 
6359 IgorA 115
	call cleare_work_arrea
116
	call drawwin
6362 IgorA 117
	jmp	end_menu
1643 mario79 118
;---------------------------------------------------------------------
119
no_new:
6359 IgorA 120
; <<< Open >>>
1643 mario79 121
	cmp	[number_menu],2
122
	jne	no_open
255 heavyiron 123
 
1632 mario79 124
;---------------------------------------------------------------------
125
	mov	[OpenDialog_data.type],0 ; open
126
 
127
	push    dword OpenDialog_data
128
	call    [OpenDialog_Start]
129
 
130
	cmp	[OpenDialog_data.status],1
6362 IgorA 131
	jne	end_menu
1632 mario79 132
;---------------------------------------------------------------------
6342 IgorA 133
	mcall SF_SET_EVENTS_MASK,0x80000027 ;100111b
1632 mario79 134
 
6328 IgorA 135
	call load_picture
6342 IgorA 136
	call drawwin
6362 IgorA 137
	jmp	end_menu
1643 mario79 138
;---------------------------------------------------------------------
139
no_open:
6359 IgorA 140
; <<< Save >>>
1643 mario79 141
	cmp	[number_menu],3
142
	jne	no_save_
255 heavyiron 143
 
1643 mario79 144
	mov	al,[save_flag]
6362 IgorA 145
	test al,al
146
	jz end_menu
1643 mario79 147
	jmp	save_enter
148
;---------------------------------------------------------------------
149
no_save_:
6359 IgorA 150
; <<< Save as >>>
1643 mario79 151
	cmp	[number_menu],4
152
	jne	no_save
255 heavyiron 153
 
1643 mario79 154
; savedialog drawwin,save1,save2,file_path
1632 mario79 155
;---------------------------------------------------------------------
1636 mario79 156
; replace extension to '.bmp'
157
	push	eax esi
158
	mov	esi,[OpenDialog_data.filename_area]
159
	xor	eax,eax
160
	cld
161
@@:
162
	lodsb
163
	test	eax,eax
164
	jnz	@r
1643 mario79 165
	sub	esi,5
1636 mario79 166
	cmp	[esi],byte '.'
167
	jne	@f
1643 mario79 168
	mov	[esi],dword '.bmp'
1636 mario79 169
@@:
170
	pop	esi eax
171
;---------------------------------------------------------------------
1632 mario79 172
	mov	[OpenDialog_data.type],1 ; save
6359 IgorA 173
	stdcall [OpenDialog_Start],OpenDialog_data
1643 mario79 174
 
1632 mario79 175
	cmp	[OpenDialog_data.status],1
6362 IgorA 176
	jne	end_menu
1632 mario79 177
;---------------------------------------------------------------------
1643 mario79 178
save1:
179
save_enter:
6342 IgorA 180
	mcall SF_SET_EVENTS_MASK,0x80000027 ;100111b
255 heavyiron 181
 
6359 IgorA 182
	call analizing_picture_to_palette
255 heavyiron 183
 
1643 mario79 184
	;eax => number of colors in picture
185
	mov	ebx,[PointerToPicture]
186
	mov	ecx,[PointerToEditBufer]
187
	mov	edx,[PointerToPalette]
188
	mov	esi,[Picture_SizeX]
189
	mov	edi,[Picture_SizeY]
255 heavyiron 190
 
1643 mario79 191
	call	coding_bmp
255 heavyiron 192
 
1643 mario79 193
	mov	eax,file_path
194
	mov	ecx,ebx
195
	mov	ebx,[PointerToEditBufer]
255 heavyiron 196
 
1643 mario79 197
	call	save_file
255 heavyiron 198
 
1643 mario79 199
	mov	[save_flag],1
6362 IgorA 200
	call drawwin
201
	jmp	end_menu
1643 mario79 202
;---------------------------------------------------------------------
203
no_save:
6359 IgorA 204
; <<< Exit >>>
1643 mario79 205
	cmp	[number_menu],5
206
	jne	no_exit_program
255 heavyiron 207
 
6355 IgorA 208
	mcall SF_TERMINATE_PROCESS
1643 mario79 209
;---------------------------------------------------------------------
210
no_exit_program:
211
no_file:
212
;|||||||||||||||||||||||||||||EDIT|||||||||||||||||||||||||
213
	cmp	[number_panel],6
6359 IgorA 214
	jne	no_edit
255 heavyiron 215
 
6359 IgorA 216
; <<< Undo >>>
1643 mario79 217
	cmp	[number_menu],1
218
	jne	no_undo
255 heavyiron 219
 
6355 IgorA 220
	cmp	[number_undo],2 ;2 - maximum undo count
6364 IgorA 221
	jge	end_menu
255 heavyiron 222
 
6355 IgorA 223
;rotate bufers -1
224
	inc	[number_undo]
225
	mov eax,[PointerToPicture]
226
	mov ebx,[PointerToCopyPicture]
227
	mov ecx,[PointerToCopyPicture2]
228
	mov [PointerToPicture],ebx
229
	mov [PointerToCopyPicture],ecx
230
	mov [PointerToCopyPicture2],eax
255 heavyiron 231
 
6355 IgorA 232
	call MovePictureToWorkScreen
6362 IgorA 233
	jmp end_menu
1643 mario79 234
;---------------------------------------------------------------------
235
no_undo:
6359 IgorA 236
; <<< Redo >>>
237
	cmp [number_menu],2
238
	jne no_redo
239
 
240
	cmp [number_undo],0
6364 IgorA 241
	je end_menu
6359 IgorA 242
 
243
;rotate bufers +1
244
	dec [number_undo]
245
	mov eax,[PointerToPicture]
246
	mov ebx,[PointerToCopyPicture]
247
	mov ecx,[PointerToCopyPicture2]
248
	mov [PointerToPicture],ecx
249
	mov [PointerToCopyPicture],eax
250
	mov [PointerToCopyPicture2],ebx
251
 
252
	call MovePictureToWorkScreen
6362 IgorA 253
	jmp end_menu
6359 IgorA 254
;---------------------------------------------------------------------
255
no_redo:
256
; <<< Copy >>>
257
	cmp	[number_menu],3
1643 mario79 258
	jne	no_copy
255 heavyiron 259
 
6385 IgorA 260
	mov	eax,[crossing_old_x]
261
	mov	ebx,[crossing_old_y]
255 heavyiron 262
 
1643 mario79 263
	cmp	eax,[rectangular_shade_x]
264
	jl	no_remove_x_copy
255 heavyiron 265
 
1643 mario79 266
	mov	ecx,[rectangular_shade_x]
6385 IgorA 267
	mov	[crossing_old_x],ecx ; crossing_old_x <-----> rectangulare_shade_x
1643 mario79 268
	mov	[rectangular_shade_x],eax
255 heavyiron 269
 
1643 mario79 270
no_remove_x_copy:
271
	cmp	ebx,[rectangular_shade_y]
272
	jl	no_remove_y_copy
255 heavyiron 273
 
1643 mario79 274
	mov	ecx,[rectangular_shade_y]
6385 IgorA 275
	mov	[crossing_old_y],ecx			 ; crossing_old_y <-----> rectangulare_shade_y
1643 mario79 276
	mov	[rectangular_shade_y],ebx
255 heavyiron 277
 
1643 mario79 278
no_remove_y_copy:
6385 IgorA 279
	mov	eax,[crossing_old_x]
280
	mov	ebx,[crossing_old_y]
1643 mario79 281
	mov	ecx,[rectangular_shade_x]
282
	mov	edx,[rectangular_shade_y]
283
	inc	eax
284
	inc	ebx
285
	dec	ecx
286
	dec	edx
255 heavyiron 287
 
1643 mario79 288
	mov	[x],eax
289
	mov	[y],ebx
290
	mov	esi,eax
291
	mov	edi,ebx
292
	mov	[Dx_],1
293
	mov	[Dy_],1
255 heavyiron 294
 
1643 mario79 295
	sub	ecx,eax
296
	jnz	no_signum_fill_r_x_copy
255 heavyiron 297
 
1643 mario79 298
	mov	[Dx_],-1
255 heavyiron 299
 
1643 mario79 300
no_signum_fill_r_x_copy:
301
	sub	edx,ebx
302
	jnz	no_signum_fill_r_y_copy
255 heavyiron 303
 
1643 mario79 304
	mov	[Dy_],-1
255 heavyiron 305
 
1643 mario79 306
no_signum_fill_r_y_copy:
307
	mov	ebx,[rectangular_shade_y]
308
	sub	ebx,edi
255 heavyiron 309
 
1643 mario79 310
	mov	edx,[PointerToEditBufer]
6369 IgorA 311
	mov	eax,[rectangular_shade_x]
6385 IgorA 312
	sub eax,[crossing_old_x]
6369 IgorA 313
	mov [edx],eax ;image.w
314
	mov	eax,[rectangular_shade_y]
6385 IgorA 315
	sub eax,[crossing_old_y]
6369 IgorA 316
	mov [edx+4],eax ;image.h
317
	mov dword[edx+8],24 ;bit in pixel
318
	add edx,12 ;copy image parametrs
1643 mario79 319
	mov	[y],edi
255 heavyiron 320
 
1643 mario79 321
loop_fill_rectangle_y_copy:
322
	mov	[x],esi
255 heavyiron 323
 
1643 mario79 324
loop_fill_rectangle_x_copy:
325
	push	esi edi
326
	mov	eax,[PointerToPicture]
327
	mov	ebx,[Picture_SizeX]
328
	mov	esi,[x]
329
	mov	edi,[y]
330
	call	GetColorOfPixel
331
	mov	[edx],ax
332
	shr	eax,16
333
	mov	[edx+2],al
334
	pop	edi esi
255 heavyiron 335
 
1643 mario79 336
	add	edx,3
337
	mov	eax,[x]
338
	add	eax,[Dx_]
339
	mov	[x],eax
255 heavyiron 340
 
1643 mario79 341
	cmp	eax,[rectangular_shade_x]
342
	jl	loop_fill_rectangle_x_copy
255 heavyiron 343
 
1643 mario79 344
	mov	eax,[y]
345
	add	eax,[Dy_]
346
	mov	[y],eax
255 heavyiron 347
 
1643 mario79 348
	cmp	eax,[rectangular_shade_y]
349
	jl	loop_fill_rectangle_y_copy
255 heavyiron 350
 
6369 IgorA 351
	;...todo use system buffer...
352
	;mcall SF_CLIPBOARD,SSF_WRITE_CB,,[PointerToEditBufer]
353
 
1643 mario79 354
	call	MovePictureToWorkScreen
355
	mov	[DrawSprite_flag],1
6362 IgorA 356
	jmp	end_menu
1643 mario79 357
;---------------------------------------------------------------------
358
no_copy:
6359 IgorA 359
; <<< Paste >>>
360
	cmp	[number_menu],4
1643 mario79 361
	jne	no_paste
255 heavyiron 362
 
6385 IgorA 363
	mov	eax,[crossing_old_x]
364
	mov	ebx,[crossing_old_y]
255 heavyiron 365
 
1643 mario79 366
	cmp	eax,[rectangular_shade_x]
367
	jl	no_remove_x_paste
255 heavyiron 368
 
1643 mario79 369
	mov	ecx,[rectangular_shade_x]
6385 IgorA 370
	mov	[crossing_old_x],ecx ; crossing_old_x <-----> rectangulare_shade_x
1643 mario79 371
	mov	[rectangular_shade_x],eax
255 heavyiron 372
 
1643 mario79 373
no_remove_x_paste:
374
	cmp	ebx,[rectangular_shade_y]
375
	jl	no_remove_y_paste
255 heavyiron 376
 
1643 mario79 377
	mov	ecx,[rectangular_shade_y]
6385 IgorA 378
	mov	[crossing_old_y],ecx ; crossing_old_y <-----> rectangulare_shade_y
1643 mario79 379
	mov	[rectangular_shade_y],ebx
255 heavyiron 380
 
1643 mario79 381
no_remove_y_paste:
6385 IgorA 382
	mov	eax,[crossing_old_x]
383
	mov	ebx,[crossing_old_y]
1643 mario79 384
	mov	ecx,[rectangular_shade_x]
385
	mov	edx,[rectangular_shade_y]
386
	inc	eax
387
	inc	ebx
388
	dec	ecx
389
	dec	edx
255 heavyiron 390
 
1643 mario79 391
	mov	[x],eax
392
	mov	[y],ebx
393
	mov	esi,eax
394
	mov	edi,ebx
395
	mov	[Dx_],1
396
	mov	[Dy_],1
255 heavyiron 397
 
1643 mario79 398
	sub	ecx,eax
399
	jnz	no_signum_fill_r_x_paste
255 heavyiron 400
 
1643 mario79 401
	mov	[Dx_],-1
255 heavyiron 402
 
1643 mario79 403
no_signum_fill_r_x_paste:
404
	sub	edx,ebx
405
	jnz	no_signum_fill_r_y_paste
255 heavyiron 406
 
1643 mario79 407
	mov	[Dy_],-1
255 heavyiron 408
 
1643 mario79 409
no_signum_fill_r_y_paste:
410
	mov	edx,[PointerToEditBufer]
6369 IgorA 411
	cmp dword[edx+8],24
412
	jne	end_menu
413
	mov eax,[edx]
6385 IgorA 414
	add eax,[crossing_old_x]
6369 IgorA 415
	mov [paste_img_w],eax
416
	mov eax,[edx+4]
6385 IgorA 417
	add eax,[crossing_old_y]
6369 IgorA 418
	mov [paste_img_h],eax
419
	add edx,12 ;copy image parametrs
1643 mario79 420
	mov	[y],edi
255 heavyiron 421
 
1643 mario79 422
loop_fill_rectangle_y_paste:
423
	mov	[x],esi
255 heavyiron 424
 
1643 mario79 425
loop_fill_rectangle_x_paste:
426
	push	esi edi
427
	mov	ecx,[edx]
428
	and	ecx,0xffffff ;color
429
	mov	eax,[PointerToPicture]
430
	mov	ebx,[Picture_SizeX]
431
	mov	esi,[x]
432
	mov	edi,[y]
433
	call	PutPixel
434
	pop	edi esi
255 heavyiron 435
 
1643 mario79 436
	add	edx,3
255 heavyiron 437
 
1643 mario79 438
	mov	eax,[x]
439
	add	eax,[Dx_]
6369 IgorA 440
	cmp eax,[paste_img_w]
441
	je no_paste_data_x
1643 mario79 442
	mov	[x],eax
443
	cmp	eax,[rectangular_shade_x]
444
	jl	loop_fill_rectangle_x_paste
6369 IgorA 445
no_paste_data_x:
255 heavyiron 446
 
1643 mario79 447
	mov	eax,[y]
448
	add	eax,[Dy_]
6369 IgorA 449
	cmp eax,[paste_img_h]
450
	je no_paste_data_y
1643 mario79 451
	mov	[y],eax
452
	cmp	eax,[rectangular_shade_y]
453
	jl	loop_fill_rectangle_y_paste
6369 IgorA 454
no_paste_data_y:
255 heavyiron 455
 
1643 mario79 456
	call	MovePictureToWorkScreen
457
	mov	[Paste_flag],1
6362 IgorA 458
	jmp	end_menu
1643 mario79 459
;---------------------------------------------------------------------
460
no_paste:
6359 IgorA 461
; <<< Cut >>>
462
	cmp	[number_menu],5
1643 mario79 463
	jne	no_cut
255 heavyiron 464
 
6385 IgorA 465
	mov	eax,[crossing_old_x]
466
	mov	ebx,[crossing_old_y]
255 heavyiron 467
 
1643 mario79 468
	cmp	eax,[rectangular_shade_x]
469
	jl	no_remove_x_cut
255 heavyiron 470
 
1643 mario79 471
	mov	ecx,[rectangular_shade_x]
6385 IgorA 472
	mov	[crossing_old_x],ecx ; crossing_old_x <-----> rectangulare_shade_x
1643 mario79 473
	mov	[rectangular_shade_x],eax
255 heavyiron 474
 
1643 mario79 475
no_remove_x_cut:
476
	cmp	ebx,[rectangular_shade_y]
477
	jl	no_remove_y_cut
255 heavyiron 478
 
1643 mario79 479
	mov	ecx,[rectangular_shade_y]
6385 IgorA 480
	mov	[crossing_old_y],ecx ; crossing_old_y <-----> rectangulare_shade_y
1643 mario79 481
	mov	[rectangular_shade_y],ebx
255 heavyiron 482
 
1643 mario79 483
no_remove_y_cut:
6385 IgorA 484
	mov	eax,[crossing_old_x]
485
	mov	ebx,[crossing_old_y]
1643 mario79 486
	mov	ecx,[rectangular_shade_x]
487
	mov	edx,[rectangular_shade_y]
488
	inc	eax
489
	inc	ebx
490
	dec	ecx
491
	dec	edx
255 heavyiron 492
 
1643 mario79 493
	mov	[x],eax
494
	mov	[y],ebx
495
	mov	esi,eax
496
	mov	edi,ebx
497
	mov	[Dx_],1
498
	mov	[Dy_],1
255 heavyiron 499
 
1643 mario79 500
	sub	ecx,eax
501
	jnz	no_signum_fill_r_x
255 heavyiron 502
 
1643 mario79 503
	mov	[Dx_],-1
255 heavyiron 504
 
1643 mario79 505
no_signum_fill_r_x:
506
	sub	edx,ebx
507
	jnz	no_signum_fill_r_y
255 heavyiron 508
 
1643 mario79 509
	mov	[Dy_],-1
255 heavyiron 510
 
1643 mario79 511
no_signum_fill_r_y:
512
	mov	[y],edi
255 heavyiron 513
 
1643 mario79 514
loop_fill_rectangle_y:
515
	mov	[x],esi
255 heavyiron 516
 
1643 mario79 517
loop_fill_rectangle_x:
518
	push	esi edi
519
	mov	eax,[PointerToPicture]
520
	mov	ebx,[Picture_SizeX]
521
	mov	ecx,dword 0xffffff
522
	mov	esi,[x]
523
	mov	edi,[y]
524
	call	PutPixel
525
	pop	edi esi
255 heavyiron 526
 
1643 mario79 527
	mov	eax,[x]
528
	add	eax,[Dx_]
529
	mov	[x],eax
255 heavyiron 530
 
1643 mario79 531
	cmp	eax,[rectangular_shade_x]
532
	jl	loop_fill_rectangle_x
255 heavyiron 533
 
1643 mario79 534
	mov	eax,[y]
535
	add	eax,[Dy_]
536
	mov	[y],eax
255 heavyiron 537
 
1643 mario79 538
	cmp	eax,[rectangular_shade_y]
539
	jl	loop_fill_rectangle_y
255 heavyiron 540
 
1643 mario79 541
	call	MovePictureToWorkScreen
6362 IgorA 542
	jmp	end_menu
1643 mario79 543
;---------------------------------------------------------------------
544
no_cut:
6359 IgorA 545
; <<< Cleare all >>>
546
	cmp	[number_menu],6
1643 mario79 547
	jne	no_cleare_all
255 heavyiron 548
 
1643 mario79 549
	call	cleare_work_arrea
550
	call	MovePictureToWorkScreen
6362 IgorA 551
	jmp	end_menu
1643 mario79 552
;---------------------------------------------------------------------
553
no_cleare_all:
6359 IgorA 554
; <<< To allocate all >>>
555
	cmp	[number_menu],7
6385 IgorA 556
	jne	end_menu
255 heavyiron 557
 
6385 IgorA 558
	mov	[crossing_old_x],0
559
	mov	[crossing_old_y],0
1643 mario79 560
	mov	eax,[Picture_SizeX]
561
	mov	ebx,[Picture_SizeY]
6385 IgorA 562
	dec eax
563
	dec ebx
1643 mario79 564
	mov	[rectangular_shade_x],eax
565
	mov	[rectangular_shade_y],ebx
566
	mov	[Current_instrument],30
6385 IgorA 567
	mov	[crossing],2
568
	;call MovePictureToWorkScreen
6362 IgorA 569
	jmp	end_menu
1643 mario79 570
;---------------------------------------------------------------------
6359 IgorA 571
no_edit:
572
;|||||||||||||||||||||||||INSTRUMENTS||||||||||||||||||||||
573
	cmp	[number_panel],5
574
	jne	no_instruments
575
 
6362 IgorA 576
	instrument_set  1,10 ; pensil
577
	instrument_set  2,11 ; draw brush
578
	instrument_set  3,12 ; spray
579
	instrument_set  4,13 ; lastik
580
	instrument_set  5,14 ; flood fill
581
	instrument_set  6,15 ; pipetka
582
	instrument_set  7,16 ; draw line
583
	instrument_set  8,17 ; draw rectangle
584
	instrument_set  9,18 ; draw circle
585
	instrument_set 10,19 ; draw ellips
586
	instrument_set 11,20 ; draw hard contour
6359 IgorA 587
 
6362 IgorA 588
no_instruments:
6371 IgorA 589
;|||||||||||||||||||||||||FILTERS||||||||||||||||||||||||||
590
	cmp	[number_panel],4
591
	jne	no_filters
6362 IgorA 592
 
6371 IgorA 593
	instrument_set  1,23 ; reflection from left to right
594
	instrument_set  2,24 ; reflection from up to down
595
 
596
no_filters:
597
 
6362 IgorA 598
end_menu:
6359 IgorA 599
	and	[number_panel],0
600
	and	[number_menu],0
601
	jmp	still
1643 mario79 602
;---------------------------------------------------------------------