Subversion Repositories Kolibri OS

Rev

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

Rev 6354 Rev 6355
Line 93... Line 93...
93
	add ebx,4
93
	add ebx,4
94
	dec ecx
94
	dec ecx
95
	jnz .next_color_save
95
	jnz .next_color_save
96
}
96
}
Line -... Line 97...
-
 
97
 
-
 
98
macro draw_calc_pixels brush
-
 
99
{
-
 
100
local .next_pixel_put
-
 
101
local .vertical_width
-
 
102
local .horizontal_width
-
 
103
local .no_draw_pixel
-
 
104
 
-
 
105
	mov ebx,[ReserveArray]
-
 
106
	mov ecx,[ebx]
-
 
107
	mov edx,[Color]
-
 
108
	mov esi,[Color]
-
 
109
	shr edx,16
-
 
110
	add ebx,4
-
 
111
	mov edi,[line_width]
-
 
112
	dec edi
-
 
113
	imul edi,25
-
 
114
	add edi,brush
-
 
115
	.next_pixel_put:
-
 
116
 
-
 
117
	mov eax,[ebx]
-
 
118
	push eax
-
 
119
	push ecx
-
 
120
	xor ebp,ebp
-
 
121
	mov [counter2],5
-
 
122
 
-
 
123
	.vertical_width:
-
 
124
		mov [counter],5
-
 
125
 
-
 
126
		.horizontal_width:
-
 
127
		xor ecx,ecx
-
 
128
		mov cl,byte[edi+ebp]
-
 
129
		test cl,cl
-
 
130
		jz .no_draw_pixel
-
 
131
			mov [eax],si
-
 
132
			mov [eax+2],dl
-
 
133
		.no_draw_pixel:
-
 
134
		add eax,3
-
 
135
		inc ebp
-
 
136
		dec [counter]
-
 
137
		jnz .horizontal_width
-
 
138
 
-
 
139
		mov ecx,[Picture_SizeX]
-
 
140
		sub ecx,5
-
 
141
		lea ecx,[ecx+ecx*2]
-
 
142
		add eax,ecx
-
 
143
	dec [counter2]
-
 
144
	jnz .vertical_width
-
 
145
 
-
 
146
	pop ecx
-
 
147
	pop eax
-
 
148
	add ebx,4
-
 
149
	dec ecx
-
 
150
	jnz .next_pixel_put
-
 
151
}
97
 
152
 
98
;-----------------------------------------------------------
153
;-----------------------------------------------------------
99
;-----instruments of panel(icon's instruments)--------------
154
;-----instruments of panel(icon's instruments)--------------
100
;-----------------------------------------------------------
155
;-----------------------------------------------------------
Line 721... Line 776...
721
 
776
 
722
	;save color pixels in ReserveArray
777
	;save color pixels in ReserveArray
Line 723... Line 778...
723
	square_width_save
778
	square_width_save
724
 
-
 
725
	;draw calculated pixels on work arrea
-
 
726
	mov ebx,[ReserveArray]
-
 
727
	mov ecx,[ebx]
-
 
728
	mov edx,[Color]
-
 
729
	mov esi,[Color]
-
 
730
	shr edx,16
-
 
731
	add ebx,4
-
 
732
	mov edi,[line_width]
-
 
733
	dec edi
-
 
734
	imul edi,25
-
 
735
	next_pixel_put_line:
-
 
736
 
-
 
737
	mov eax,[ebx]
-
 
738
	push eax
-
 
739
	push ecx
-
 
740
	xor ebp,ebp
-
 
741
	and [counter2],0
-
 
742
 
-
 
743
	vertical_width:
-
 
744
	   and [counter],0
-
 
745
 
-
 
746
	   horizontal_width:
-
 
747
	   xor ecx,ecx
-
 
748
	   mov cl,byte[width_pixels+edi+ebp]
-
 
749
	   test cl,cl
-
 
750
	     jz no_draw_pixel_line
-
 
751
	      mov [eax],si
-
 
752
	      mov [eax+2],dl
-
 
753
	     no_draw_pixel_line:
-
 
754
	   add eax,3
-
 
755
	   inc ebp
-
 
756
	   inc [counter]
-
 
757
	   cmp [counter],5
-
 
758
	   jne horizontal_width
-
 
759
 
-
 
760
	   mov ecx,[Picture_SizeX]
-
 
761
	   sub ecx,5
-
 
762
	   lea ecx,[ecx+ecx*2]
-
 
763
	   add eax,ecx
-
 
764
	inc [counter2]
-
 
765
	cmp [counter2],5
-
 
766
	jne vertical_width
-
 
767
 
-
 
768
	pop ecx
-
 
769
	pop eax
-
 
770
	add ebx,4
779
 
Line 771... Line 780...
771
	dec ecx
780
	;draw calculated pixels on work arrea
772
	jnz next_pixel_put_line
-
 
773
 
781
	draw_calc_pixels width_pixels
774
	call MovePictureToWorkScreen
782
 
Line 775... Line 783...
775
 
783
	call MovePictureToWorkScreen
776
	jmp still
784
	jmp still
Line 833... Line 841...
833
 
841
 
834
	;save color pixels in ReserveArray
842
	;save color pixels in ReserveArray
Line 835... Line 843...
835
	square_width_save
843
	square_width_save
836
 
-
 
837
	;draw calculated pixels on work arrea
-
 
838
	mov ebx,[ReserveArray]
-
 
839
	mov ecx,[ebx]
-
 
840
	mov edx,[Color]
-
 
841
	mov esi,[Color]
-
 
842
	shr edx,16
-
 
843
	add ebx,4
-
 
844
	mov edi,[line_width]
-
 
845
	dec edi
-
 
846
	imul edi,25
-
 
847
	next_pixel_put_rectangle:
-
 
848
 
-
 
849
	mov eax,[ebx]
-
 
850
	push eax
-
 
851
	push ecx
-
 
852
	xor ebp,ebp
-
 
853
	and [counter2],0
-
 
854
 
-
 
855
	vertical_width_rectangle:
-
 
856
	   and [counter],0
-
 
857
 
-
 
858
	   horizontal_width_rectangle:
844
 
859
	   xor ecx,ecx
-
 
860
	   mov cl,byte[width_pixels_rectangle+edi+ebp]
-
 
861
	   test cl,cl
-
 
862
	     jz no_draw_pixel_rectangle
-
 
863
	      mov [eax],si
-
 
864
	      mov [eax+2],dl
-
 
865
	     no_draw_pixel_rectangle:
-
 
866
	   add eax,3
-
 
867
	   inc ebp
-
 
868
	   inc [counter]
-
 
869
	   cmp [counter],5
-
 
870
	   jne horizontal_width_rectangle
-
 
871
 
-
 
872
	   mov ecx,[Picture_SizeX]
-
 
873
	   sub ecx,5
-
 
874
	   lea ecx,[ecx+ecx*2]
-
 
875
	   add eax,ecx
-
 
876
	inc [counter2]
-
 
877
	cmp [counter2],5
-
 
878
	jne vertical_width_rectangle
-
 
879
 
-
 
880
	pop ecx
-
 
881
	pop eax
-
 
882
	add ebx,4
-
 
Line 883... Line 845...
883
	dec ecx
845
	;draw calculated pixels on work arrea
884
	jnz next_pixel_put_rectangle
846
	draw_calc_pixels width_pixels_rectangle
885
 
847
 
Line 1031... Line 993...
1031
 
993
 
1032
	;save color pixels in ReserveArray
994
	;save color pixels in ReserveArray
Line 1033... Line 995...
1033
	square_width_save
995
	square_width_save
1034
 
-
 
1035
	;draw calculated pixels on work arrea
-
 
1036
	mov ebx,[ReserveArray]
-
 
1037
	mov ecx,[ebx]
-
 
1038
	mov edx,[Color]
-
 
1039
	mov esi,[Color]
-
 
1040
	shr edx,16
-
 
1041
	add ebx,4
-
 
1042
	mov edi,[line_width]
-
 
1043
	dec edi
-
 
1044
	imul edi,25
-
 
1045
	next_pixel_put_circle:
-
 
1046
 
-
 
1047
	mov eax,[ebx]
-
 
1048
	push eax
-
 
1049
	push ecx
-
 
1050
	xor ebp,ebp
-
 
1051
	and [counter2],0
996
 
1052
 
-
 
1053
	vertical_width_circle:
-
 
1054
	   and [counter],0
-
 
1055
 
-
 
1056
	   horizontal_width_circle:
-
 
1057
	   xor ecx,ecx
-
 
1058
	   mov cl,byte[width_pixels+edi+ebp]
-
 
1059
	   test cl,cl
-
 
1060
	     jz no_draw_pixel_circle
-
 
1061
	      mov [eax],si
-
 
1062
	      mov [eax+2],dl
-
 
1063
	     no_draw_pixel_circle:
-
 
1064
	   add eax,3
-
 
1065
	   inc ebp
-
 
1066
	   inc [counter]
-
 
1067
	   cmp [counter],5
-
 
1068
	   jne horizontal_width_circle
-
 
1069
 
-
 
1070
	   mov ecx,[Picture_SizeX]
-
 
1071
	   sub ecx,5
-
 
1072
	   lea ecx,[ecx+ecx*2]
-
 
1073
	   add eax,ecx
-
 
1074
	inc [counter2]
-
 
1075
	cmp [counter2],5
-
 
1076
	jne vertical_width_circle
-
 
1077
 
-
 
1078
	pop ecx
-
 
1079
	pop eax
-
 
1080
	add ebx,4
-
 
Line 1081... Line 997...
1081
	dec ecx
997
	;draw calculated pixels on work arrea
1082
	jnz next_pixel_put_circle
998
	draw_calc_pixels width_pixels
1083
 
999
 
Line 1713... Line 1629...
1713
 
1629
 
1714
	;save color pixels in ReserveArray
1630
	;save color pixels in ReserveArray
Line 1715... Line 1631...
1715
	square_width_save
1631
	square_width_save
1716
 
-
 
1717
	;draw calculated pixels on work arrea
-
 
1718
	mov ebx,[ReserveArray]
-
 
1719
	mov ecx,[ebx]
-
 
1720
	mov edx,[Color]
-
 
1721
	mov esi,[Color]
-
 
1722
	shr edx,16
-
 
1723
	add ebx,4
-
 
1724
	mov edi,[line_width]
-
 
1725
	dec edi
-
 
1726
	imul edi,25
-
 
1727
	next_pixel_put_konture:
-
 
1728
 
-
 
1729
	mov eax,[ebx]
-
 
1730
	push eax
-
 
1731
	push ecx
-
 
1732
	xor ebp,ebp
-
 
1733
	and [counter2],0
-
 
1734
 
-
 
1735
	vertical_width_konture:
-
 
1736
	   and [counter],0
-
 
1737
 
-
 
1738
	   horizontal_width_konture:
1632
 
1739
	   xor ecx,ecx
-
 
1740
	   mov cl,byte[width_pixels+edi+ebp]
-
 
1741
	   test cl,cl
-
 
1742
	     jz no_draw_pixel_konture
-
 
1743
	      mov [eax],si
-
 
1744
	      mov [eax+2],dl
-
 
1745
	     no_draw_pixel_konture:
-
 
1746
	   add eax,3
-
 
1747
	   inc ebp
-
 
1748
	   inc [counter]
-
 
1749
	   cmp [counter],5
-
 
1750
	   jne horizontal_width_konture
-
 
1751
 
-
 
1752
	   mov ecx,[Picture_SizeX]
-
 
1753
	   sub ecx,5
-
 
1754
	   lea ecx,[ecx+ecx*2]
-
 
1755
	   add eax,ecx
-
 
1756
	inc [counter2]
-
 
1757
	cmp [counter2],5
-
 
1758
	jne vertical_width_konture
-
 
1759
 
-
 
1760
	pop ecx
-
 
1761
	pop eax
-
 
1762
	add ebx,4
-
 
Line 1763... Line 1633...
1763
	dec ecx
1633
	;draw calculated pixels on work arrea
1764
	jnz next_pixel_put_konture
1634
	draw_calc_pixels width_pixels
1765
 
1635
 
1766
	mov eax,[ScreenX]
1636
	mov eax,[ScreenX]
Line 1911... Line 1781...
1911
 
1781
 
1912
	;save color pixels in ReserveArray
1782
	;save color pixels in ReserveArray
Line 1913... Line 1783...
1913
	square_width_save
1783
	square_width_save
1914
 
-
 
1915
	;draw calculated pixels on work arrea
-
 
1916
	mov ebx,[ReserveArray]
-
 
1917
	mov ecx,[ebx]
-
 
1918
	mov edx,[Color]
-
 
1919
	mov esi,[Color]
-
 
1920
	shr edx,16
-
 
1921
	add ebx,4
-
 
1922
	mov edi,[line_width]
-
 
1923
	dec edi
-
 
1924
	imul edi,25
-
 
1925
	next_pixel_put_ellips:
-
 
1926
 
-
 
1927
	mov eax,[ebx]
-
 
1928
	push eax
-
 
1929
	push ecx
-
 
1930
	xor ebp,ebp
-
 
1931
	and [counter2],0
-
 
1932
 
-
 
1933
	vertical_width_ellips:
-
 
1934
	   and [counter],0
-
 
1935
 
-
 
1936
	   horizontal_width_ellips:
-
 
1937
	   xor ecx,ecx
-
 
1938
	   mov cl,byte[width_pixels+edi+ebp]
-
 
1939
	   test cl,cl
-
 
1940
	     jz no_draw_pixel_ellips
-
 
1941
	      mov [eax],si
-
 
1942
	      mov [eax+2],dl
-
 
1943
	     no_draw_pixel_ellips:
-
 
1944
	   add eax,3
-
 
1945
	   inc ebp
-
 
1946
	   inc [counter]
-
 
1947
	   cmp [counter],5
-
 
1948
	   jne horizontal_width_ellips
-
 
1949
 
-
 
1950
	   mov ecx,[Picture_SizeX]
-
 
1951
	   sub ecx,5
-
 
1952
	   lea ecx,[ecx+ecx*2]
-
 
1953
	   add eax,ecx
-
 
1954
	inc [counter2]
-
 
1955
	cmp [counter2],5
-
 
1956
	jne vertical_width_ellips
-
 
1957
 
-
 
1958
	pop ecx
-
 
1959
	pop eax
-
 
1960
	add ebx,4
1784
 
Line 1961... Line 1785...
1961
	dec ecx
1785
	;draw calculated pixels on work arrea
1962
	jnz next_pixel_put_ellips
1786
	draw_calc_pixels width_pixels
1963
 
1787