Subversion Repositories Kolibri OS

Rev

Rev 6385 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6385 Rev 8271
Line 636... Line 636...
636
 
636
 
637
	;************************palette************************
637
	;************************palette************************
638
	cmp eax,51
638
	cmp eax,51
Line 639... Line -...
639
	jne no_palette
-
 
640
 
-
 
641
	mov eax,20
-
 
642
	mov ebx,ci_palete_y_pos
-
 
643
	mov ecx,32*10+32*5+7
-
 
644
	mov edx,140
639
	jne no_palette
645
	mov  esi,1
-
 
646
	call draw_volume_rectangle
640
 
647
	mov [x],20+5
-
 
648
	mov [y],ci_palete_y_pos+10
-
 
649
	mov edi,256
-
 
650
	xor esi,esi
-
 
651
	next_rectangle:
-
 
652
	mov ebx,[x]
641
	stdcall [ColorDialog_Start],ColorDialog_data
653
	mov ecx,[y]
-
 
654
	mov edx,[palitra+esi]
-
 
655
	and edx,0xffffff
-
 
656
	shl ebx,16
-
 
657
	shl ecx,16
-
 
658
	add ebx,13
-
 
659
	add ecx,13
-
 
660
	mcall SF_DRAW_RECT
-
 
661
	add [x],15
642
; 2 - use another method/not found program
662
	cmp [x],20+15*32
-
 
663
	jl no_new_line
-
 
664
	mov [x],20+5
-
 
665
	add [y],15
-
 
666
	no_new_line:
-
 
667
	add esi,4
643
	;cmp	[ColorDialog_data.status],2
668
	dec edi
-
 
669
	jnz next_rectangle
-
 
670
 
644
	;je	no_palette
671
	wait_events:
-
 
672
	mcall SF_WAIT_EVENT
-
 
673
 
645
; 1 - OK, color selected	
-
 
646
	cmp	[ColorDialog_data.status],1
674
	cmp eax,1
647
	jne	@f
675
	jne @f
648
		mov	eax,[ColorDialog_data.color]
676
		ret
-
 
677
	@@:
-
 
678
	cmp eax,2
-
 
679
	jne no_keys
-
 
680
		mcall SF_GET_KEY
-
 
681
		jmp wait_events
-
 
682
	no_keys:
-
 
683
	cmp eax,3
-
 
684
	jne no_buttons
-
 
685
		mcall SF_GET_BUTTON
-
 
686
		jmp wait_events
-
 
687
	no_buttons:
-
 
688
	cmp eax,6
-
 
689
	jne wait_events
-
 
690
 
-
 
691
	call GetMouseClick
-
 
692
 
-
 
693
	test eax,eax
-
 
694
	jz wait_events
-
 
695
	call GetMouseCoordinats
-
 
696
	mov [x],20+5
-
 
697
	mov [y],ci_palete_y_pos+10
-
 
698
	mov [counter],0
-
 
699
	next_rectangle_column:
-
 
700
	mov eax,[x]
-
 
701
	mov ebx,[y]
-
 
702
	mov ecx,[MouseX]
-
 
703
	mov edx,[MouseY]
-
 
704
	mov esi,13
-
 
705
	mov edi,13
-
 
706
	call columnus
-
 
707
	test eax,eax
-
 
708
	jz no_columnus_color
-
 
709
 
-
 
710
	mov eax,[counter]
-
 
711
	shl eax,2
-
 
712
	mov ebx,[palitra+eax]
-
 
713
	and ebx,0xffffff
-
 
714
	mov [Color],ebx
-
 
715
	no_columnus_color:
-
 
716
 
-
 
717
	add [x],15
-
 
718
 
-
 
719
	cmp [x],20+15*32
-
 
720
	jl no_new_line_column
-
 
721
 
-
 
722
	mov [x],20+5
-
 
723
	add [y],15
-
 
724
	no_new_line_column:
-
 
725
 
-
 
726
	inc [counter]
-
 
727
 
-
 
728
	cmp [counter],257
-
 
729
	jne next_rectangle_column
-
 
730
 
-
 
731
	mcall SF_SLEEP,10
649
		mov [Color],eax
Line 732... Line 650...
732
 
650
	@@:
733
	call drawwin
651
	;call drawwin
734
 
652
 
735
	mov eax,[Last_instrument]
653
	mov eax,[Last_instrument]