Subversion Repositories Kolibri OS

Rev

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

Rev 485 Rev 6342
Line 167... Line 167...
167
	add eax,[PointerToPicture]
167
	add eax,[PointerToPicture]
168
	mov ebx,[eax]
168
	mov ebx,[eax]
169
	and ebx,0xffffff
169
	and ebx,0xffffff
170
	mov [Color],ebx
170
	mov [Color],ebx
Line 171... Line -...
171
 
-
 
172
	mov eax,13
171
 
173
	mov ebx,136*65536+20
-
 
174
	mov ecx,65*65536+21
-
 
175
	mov edx,[Color]
-
 
Line 176... Line 172...
176
	mcall
172
	mcall SF_DRAW_RECT, 136*65536+20, 65*65536+21, [Color]
177
 
173
 
Line 178... Line 174...
178
	jmp still
174
	jmp still
Line 339... Line 335...
339
	mov ecx,[Picture_SizeX]
335
	mov ecx,[Picture_SizeX]
340
	imul ecx,[Picture_SizeY]
336
	imul ecx,[Picture_SizeY]
341
	lea ecx,[ecx+ecx*2]
337
	lea ecx,[ecx+ecx*2]
342
	shl ecx,1
338
	shl ecx,1
Line 343... Line 339...
343
 
339
 
344
	cmp ecx,500000
340
	cmp ecx,mem_flood_f
Line 345... Line 341...
345
	ja normal_size_of_bufer
341
	ja normal_size_of_bufer
Line 346... Line 342...
346
 
342
 
Line 478... Line 474...
478
	mov [x],20+5
474
	mov [x],20+5
479
	mov [y],100+10
475
	mov [y],100+10
480
	mov edi,256
476
	mov edi,256
481
	xor esi,esi
477
	xor esi,esi
482
	next_rectangle:
478
	next_rectangle:
483
	mov eax,13
-
 
484
	mov ebx,[x]
479
	mov ebx,[x]
485
	mov ecx,[y]
480
	mov ecx,[y]
486
	mov edx,[palitra+esi]
481
	mov edx,[palitra+esi]
487
	and edx,0xffffff
482
	and edx,0xffffff
488
	shl ebx,16
483
	shl ebx,16
489
	shl ecx,16
484
	shl ecx,16
490
	add ebx,13
485
	add ebx,13
491
	add ecx,13
486
	add ecx,13
492
	mcall
487
	mcall SF_DRAW_RECT
493
	add [x],15
488
	add [x],15
494
	cmp [x],20+15*32
489
	cmp [x],20+15*32
495
	jl no_new_line
490
	jl no_new_line
496
	mov [x],20+5
491
	mov [x],20+5
497
	add [y],15
492
	add [y],15
Line 507... Line 502...
507
	je still
502
	je still
Line 508... Line 503...
508
 
503
 
509
	cmp eax,2
504
	cmp eax,2
Line 510... Line -...
510
	jne no_keys
-
 
511
 
505
	jne no_keys
Line 512... Line 506...
512
	mov eax,2
506
 
Line 513... Line 507...
513
	mcall
507
	mcall SF_GET_KEY
514
 
508
 
515
	no_keys:
-
 
516
 
509
	no_keys:
Line 517... Line 510...
517
	cmp eax,3
510
 
Line 518... Line 511...
518
	jne no_buttons
511
	cmp eax,3
519
	mov eax,17
512
	jne no_buttons
Line 562... Line 555...
562
	inc [counter]
555
	inc [counter]
Line 563... Line 556...
563
 
556
 
564
	cmp [counter],257
557
	cmp [counter],257
Line 565... Line -...
565
	jne next_rectangle_column
-
 
566
 
558
	jne next_rectangle_column
567
	mov eax,5
-
 
Line 568... Line 559...
568
	mov ebx,10
559
 
Line 569... Line 560...
569
	mcall
560
	mcall SF_SLEEP,10
570
 
561
 
Line 590... Line 581...
590
	add eax,[PosX]
581
	add eax,[PosX]
591
	add ebx,[PosY]
582
	add ebx,[PosY]
592
	mov [OldX],eax
583
	mov [OldX],eax
593
	mov [OldY],ebx
584
	mov [OldY],ebx
594
	mov [Activate_instrument],1
585
	mov [Activate_instrument],1
595
	mov eax,[ReserveArray]
586
	xor eax,eax
596
	mov ecx,60000
587
	mov ecx,mem_flood_f/4
597
	clear_array_line:
-
 
598
	mov [eax],dword 0
588
	mov edi,[ReserveArray]
599
	add eax,4
-
 
600
	dec ecx
589
	rep stosd
601
	jnz clear_array_line
-
 
602
	jmp still
590
	jmp still
603
	no_new_line_xy:
591
	no_new_line_xy:
Line 604... Line 592...
604
 
592
 
605
	;put saved pixels
593
	;put saved pixels
Line 789... Line 777...
789
	add eax,[PosX]
777
	add eax,[PosX]
790
	add ebx,[PosY]
778
	add ebx,[PosY]
791
	mov [OldX],eax
779
	mov [OldX],eax
792
	mov [OldY],ebx
780
	mov [OldY],ebx
793
	mov [Activate_instrument],1
781
	mov [Activate_instrument],1
794
	mov eax,[ReserveArray]
782
	xor eax,eax
795
	mov ecx,60000
783
	mov ecx,mem_flood_f/4
796
	clear_array_rectangle:
-
 
797
	mov [eax],dword 0
784
	mov edi,[ReserveArray]
798
	add eax,4
-
 
799
	dec ecx
785
	rep stosd
800
	jnz clear_array_rectangle
-
 
801
	jmp still
786
	jmp still
802
	no_new_rectangle_xy:
787
	no_new_rectangle_xy:
Line 803... Line 788...
803
 
788
 
804
	;put saved pixels
789
	;put saved pixels
Line 986... Line 971...
986
	add eax,[PosX]
971
	add eax,[PosX]
987
	add ebx,[PosY]
972
	add ebx,[PosY]
988
	mov [OldX],eax
973
	mov [OldX],eax
989
	mov [OldY],ebx
974
	mov [OldY],ebx
990
	mov [Activate_instrument],1
975
	mov [Activate_instrument],1
991
	mov eax,[ReserveArray]
976
	xor eax,eax
992
	mov ecx,60000
977
	mov ecx,mem_flood_f/4
993
	clear_array_circle:
-
 
994
	mov [eax],dword 0
978
	mov edi,[ReserveArray]
995
	add eax,4
-
 
996
	dec ecx
979
	rep stosd
997
	jnz clear_array_circle
-
 
998
	jmp still
980
	jmp still
999
	no_new_circle_xy:
981
	no_new_circle_xy:
Line 1000... Line 982...
1000
 
982
 
1001
	;put saved pixels
983
	;put saved pixels
Line 1346... Line 1328...
1346
	mov [rectangular_shade_y],ebx
1328
	mov [rectangular_shade_y],ebx
1347
	mov [Activate_instrument],1
1329
	mov [Activate_instrument],1
1348
	mov [instrument_used],1
1330
	mov [instrument_used],1
1349
	and [crossing],0
1331
	and [crossing],0
1350
	and [finishing_crossing],0
1332
	and [finishing_crossing],0
1351
	mov eax,[ReserveArray]
-
 
1352
	mov ecx,60000
1333
	xor eax,eax
1353
	clear_array_allocation:
1334
	mov ecx,mem_flood_f/4
1354
	mov [eax],dword 0
1335
	mov edi,[ReserveArray]
1355
	add eax,4
-
 
1356
	dec ecx
1336
	rep stosd
1357
	jnz clear_array_allocation
-
 
1358
	jmp still
1337
	jmp still
1359
	no_new_allocation_xy:
1338
	no_new_allocation_xy:
1360
	instrument_not_finished_work:
1339
	instrument_not_finished_work:
Line 1361... Line 1340...
1361
 
1340
 
Line 1929... Line 1908...
1929
	jnz instrument_used_true
1908
	jnz instrument_used_true
1930
	mov [instrument_used],byte 1
1909
	mov [instrument_used],byte 1
1931
	instrument_used_true:
1910
	instrument_used_true:
Line 1932... Line 1911...
1932
 
1911
 
1933
	mov [Activate_instrument],1
-
 
1934
	mov eax,[ReserveArray]
1912
	mov [Activate_instrument],1
1935
	mov ecx,60000
1913
	xor eax,eax
1936
	clear_array_konture:
1914
	mov ecx,mem_flood_f/4
1937
	mov [eax],dword 0
-
 
1938
	add eax,4
1915
	mov edi,[ReserveArray]
1939
	dec ecx
-
 
Line 1940... Line 1916...
1940
	jnz clear_array_line
1916
	rep stosd
Line 1941... Line 1917...
1941
 
1917
 
1942
	no_new_konture_xy:
1918
	no_new_konture_xy:
Line 2135... Line 2111...
2135
	add eax,[PosX]
2111
	add eax,[PosX]
2136
	add ebx,[PosY]
2112
	add ebx,[PosY]
2137
	mov [OldX],eax
2113
	mov [OldX],eax
2138
	mov [OldY],ebx
2114
	mov [OldY],ebx
2139
	mov [Activate_instrument],1
2115
	mov [Activate_instrument],1
2140
	mov eax,[ReserveArray]
-
 
2141
	mov ecx,60000
2116
	xor eax,eax
2142
	clear_array_ellips:
2117
	mov ecx,mem_flood_f/4
2143
	mov [eax],dword 0
2118
	mov edi,[ReserveArray]
2144
	add eax,4
-
 
2145
	dec ecx
2119
	rep stosd
2146
	jnz clear_array_ellips
-
 
2147
	jmp still
2120
	jmp still
2148
	no_new_ellips_xy:
2121
	no_new_ellips_xy:
Line 2149... Line 2122...
2149
 
2122
 
2150
	;put saved pixels
2123
	;put saved pixels