Rev 6359 | Rev 6371 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6359 | Rev 6362 | ||
---|---|---|---|
Line 151... | Line 151... | ||
151 | } |
151 | } |
Line 152... | Line 152... | ||
152 | 152 | ||
153 | ;----------------------------------------------------------- |
153 | ;----------------------------------------------------------- |
154 | ;-----instruments of panel(icon's instruments)-------------- |
154 | ;-----instruments of panel(icon's instruments)-------------- |
- | 155 | ;----------------------------------------------------------- |
|
- | 156 | ;input: |
|
- | 157 | ; [Current_instrument] - instrument code |
|
155 | ;----------------------------------------------------------- |
158 | ; |
- | 159 | ; *** instrument codes *** |
|
- | 160 | ;10 - pensil |
|
- | 161 | ;11 - draw brush |
|
- | 162 | ;12 - spray |
|
- | 163 | ;13 - lastik |
|
- | 164 | ;14 - flood fill |
|
- | 165 | ;15 - pipetka |
|
- | 166 | ;16 - draw line |
|
- | 167 | ;17 - draw rectangle |
|
- | 168 | ;18 - draw circle |
|
- | 169 | ;19 - draw ellips |
|
- | 170 | ;20 - draw hard contour |
|
- | 171 | ;21 - allocation of a countour |
|
- | 172 | ;23 - reflection from left to right |
|
- | 173 | ;24 - reflection from up to down |
|
- | 174 | ;40 - brush 1 |
|
- | 175 | ;41 - brush 2 |
|
- | 176 | ;42 - brush 3 |
|
- | 177 | ;43 - brush 4 |
|
- | 178 | ;44 - brush 5 |
|
- | 179 | ;45 - zoom 1 |
|
- | 180 | ;46 - zoom 2 |
|
- | 181 | ;47 - zoom 3 |
|
- | 182 | ;48 - zoom 4 |
|
- | 183 | ;49 - zoom 8 |
|
- | 184 | ;50 - zoom 16 |
|
Line -... | Line 185... | ||
- | 185 | ;51 - palette |
|
- | 186 | ||
156 | TakeButtonInstruments: |
187 | align 4 |
Line 157... | Line 188... | ||
157 | 188 | TakeButtonInstruments: |
|
158 | mov eax,[Current_instrument] |
189 | mov eax,[Current_instrument] |
159 | 190 | ||
Line 166... | Line 197... | ||
166 | mov [Number_Brush],0 |
197 | mov [Number_Brush],0 |
167 | mov ebx,[Last_instrument] |
198 | mov ebx,[Last_instrument] |
168 | mov [Current_instrument],ebx |
199 | mov [Current_instrument],ebx |
Line 169... | Line 200... | ||
169 | 200 | ||
170 | mov [line_width],1 |
- | |
171 | 201 | mov [line_width],1 |
|
172 | jmp still |
202 | ret |
Line 173... | Line 203... | ||
173 | no_brush1: |
203 | no_brush1: |
174 | 204 | ||
175 | ;*************************brush 2*********************** |
205 | ;*************************brush 2*********************** |
Line 181... | Line 211... | ||
181 | mov [Number_Brush],1 |
211 | mov [Number_Brush],1 |
182 | mov ebx,[Last_instrument] |
212 | mov ebx,[Last_instrument] |
183 | mov [Current_instrument],ebx |
213 | mov [Current_instrument],ebx |
Line 184... | Line 214... | ||
184 | 214 | ||
185 | mov [line_width],2 |
- | |
186 | 215 | mov [line_width],2 |
|
187 | jmp still |
216 | ret |
Line 188... | Line 217... | ||
188 | no_brush2: |
217 | no_brush2: |
189 | 218 | ||
190 | ;*************************brush 3*********************** |
219 | ;*************************brush 3*********************** |
Line 196... | Line 225... | ||
196 | mov [Number_Brush],2 |
225 | mov [Number_Brush],2 |
197 | mov ebx,[Last_instrument] |
226 | mov ebx,[Last_instrument] |
198 | mov [Current_instrument],ebx |
227 | mov [Current_instrument],ebx |
Line 199... | Line 228... | ||
199 | 228 | ||
200 | mov [line_width],3 |
- | |
201 | 229 | mov [line_width],3 |
|
202 | jmp still |
230 | ret |
Line 203... | Line 231... | ||
203 | no_brush3: |
231 | no_brush3: |
204 | 232 | ||
205 | ;*************************brush 4*********************** |
233 | ;*************************brush 4*********************** |
Line 211... | Line 239... | ||
211 | mov [Number_Brush],3 |
239 | mov [Number_Brush],3 |
212 | mov ebx,[Last_instrument] |
240 | mov ebx,[Last_instrument] |
213 | mov [Current_instrument],ebx |
241 | mov [Current_instrument],ebx |
Line 214... | Line 242... | ||
214 | 242 | ||
215 | mov [line_width],4 |
- | |
216 | 243 | mov [line_width],4 |
|
217 | jmp still |
244 | ret |
Line 218... | Line 245... | ||
218 | no_brush4: |
245 | no_brush4: |
219 | 246 | ||
220 | ;*************************brush 5*********************** |
247 | ;*************************brush 5*********************** |
Line 226... | Line 253... | ||
226 | mov [Number_Brush],4 |
253 | mov [Number_Brush],4 |
227 | mov ebx,[Last_instrument] |
254 | mov ebx,[Last_instrument] |
228 | mov [Current_instrument],ebx |
255 | mov [Current_instrument],ebx |
Line 229... | Line 256... | ||
229 | 256 | ||
230 | mov [line_width],5 |
- | |
231 | 257 | mov [line_width],5 |
|
232 | jmp still |
258 | ret |
Line 233... | Line 259... | ||
233 | no_brush5: |
259 | no_brush5: |
234 | 260 | ||
235 | ;*************************pensil************************ |
261 | ;*************************pensil************************ |
Line 259... | Line 285... | ||
259 | mov [OldX],eax |
285 | mov [OldX],eax |
260 | mov [OldY],ebx |
286 | mov [OldY],ebx |
Line 261... | Line 287... | ||
261 | 287 | ||
Line 262... | Line -... | ||
262 | no_activated_later: |
- | |
263 | - | ||
264 | ; mov eax,[MaxWorkScreen_SizeX] ??? |
- | |
265 | ; mov ebx,[MaxWorkScreen_SizeY] ??? |
288 | no_activated_later: |
266 | 289 | ||
267 | mov eax,[PointerToPicture] |
290 | mov eax,[PointerToPicture] |
268 | mov ebx,[ReserveArray] |
291 | mov ebx,[ReserveArray] |
269 | mov ecx,[Picture_SizeX] |
292 | mov ecx,[Picture_SizeX] |
Line 300... | Line 323... | ||
300 | mov [OldX],eax |
323 | mov [OldX],eax |
301 | mov [OldY],ebx |
324 | mov [OldY],ebx |
Line 302... | Line 325... | ||
302 | 325 | ||
303 | call MovePictureToWorkScreen |
326 | call MovePictureToWorkScreen |
304 | mov [Activate_instrument],1 |
327 | mov [Activate_instrument],1 |
305 | jmp still |
328 | ret |
Line 306... | Line -... | ||
306 | no_pensil: |
- | |
307 | - | ||
308 | ;*************************pipetka*********************** |
- | |
309 | cmp eax,15 |
- | |
310 | jne no_pipetka |
- | |
311 | - | ||
312 | mov eax,[ScreenY] |
- | |
313 | mov ebx,[Picture_SizeX] |
- | |
314 | add eax,[PosY] |
- | |
315 | imul eax,ebx |
- | |
316 | add eax,[ScreenX] |
- | |
317 | add eax,[PosX] |
- | |
318 | lea eax,[eax+eax*2] |
- | |
319 | add eax,[PointerToPicture] |
- | |
320 | mov ebx,[eax] |
- | |
321 | and ebx,0xffffff |
- | |
322 | mov [Color],ebx |
- | |
323 | - | ||
324 | mcall SF_DRAW_RECT, ((ci_panel_x_pos+130) shl 16)+21,\ |
- | |
325 | ((ci_panel_y_pos+28) shl 16)+21, [Color] |
- | |
326 | - | ||
327 | jmp still |
- | |
328 | no_pipetka: |
329 | no_pensil: |
329 | 330 | ||
330 | ;*************************draw brush******************** |
331 | ;*************************draw brush******************** |
Line 331... | Line 332... | ||
331 | cmp eax,11 |
332 | cmp eax,11 |
Line 473... | Line 474... | ||
473 | 474 | ||
474 | call MovePictureToWorkScreen |
475 | call MovePictureToWorkScreen |
475 | mov eax,[Current_instrument] |
476 | mov eax,[Current_instrument] |
Line 476... | Line 477... | ||
476 | mov [Last_instrument],eax |
477 | mov [Last_instrument],eax |
477 | 478 | ||
Line -... | Line 479... | ||
- | 479 | ret |
|
- | 480 | no_brush: |
|
- | 481 | ||
- | 482 | ;*************************pipetka*********************** |
|
- | 483 | cmp eax,15 |
|
- | 484 | jne no_pipetka |
|
- | 485 | ||
- | 486 | mov eax,[ScreenY] |
|
- | 487 | mov ebx,[Picture_SizeX] |
|
- | 488 | add eax,[PosY] |
|
- | 489 | imul eax,ebx |
|
- | 490 | add eax,[ScreenX] |
|
- | 491 | add eax,[PosX] |
|
- | 492 | lea eax,[eax+eax*2] |
|
- | 493 | add eax,[PointerToPicture] |
|
- | 494 | mov ebx,[eax] |
|
- | 495 | and ebx,0xffffff |
|
- | 496 | mov [Color],ebx |
|
- | 497 | ||
- | 498 | mcall SF_DRAW_RECT, ((ci_panel_x_pos+130) shl 16)+21,\ |
|
- | 499 | ((ci_panel_y_pos+28) shl 16)+21, [Color] |
|
- | 500 | ||
- | 501 | ret |
|
- | 502 | no_pipetka: |
|
- | 503 | ||
- | 504 | ;************************lastik************************* |
|
- | 505 | cmp eax,13 |
|
- | 506 | jne no_lastik |
|
- | 507 | ||
- | 508 | mov [Last_instrument],eax |
|
- | 509 | mov [lastik_is_active],1 |
|
478 | jmp still |
510 | jmp lastik_in |
479 | no_brush: |
511 | no_lastik: |
480 | 512 | ||
Line 481... | Line 513... | ||
481 | ;************************Flood Fill********************* |
513 | ;************************Flood Fill********************* |
Line 511... | Line 543... | ||
511 | dec esi |
543 | dec esi |
512 | mov edi,[Color] |
544 | mov edi,[Color] |
Line 513... | Line 545... | ||
513 | 545 | ||
514 | call flood_fill |
546 | call flood_fill |
515 | call MovePictureToWorkScreen |
- | |
516 | 547 | call MovePictureToWorkScreen |
|
517 | jmp still |
548 | ret |
Line 518... | Line -... | ||
518 | no_FloodFill: |
- | |
519 | - | ||
520 | ;************************lastik************************* |
- | |
521 | cmp eax,13 |
- | |
522 | jne no_lastik |
- | |
523 | - | ||
524 | mov [Last_instrument],eax |
- | |
525 | mov [lastik_is_active],1 |
- | |
526 | jmp lastik_in |
- | |
527 | - | ||
528 | no_lastik: |
549 | no_FloodFill: |
529 | 550 | ||
530 | ;******************************************************* |
551 | ;************************spray************************** |
Line 531... | Line 552... | ||
531 | cmp eax,12 |
552 | cmp eax,12 |
532 | jne no_spray |
553 | jne no_spray |
533 | 554 | ||
534 | cmp [Activate_instrument],0 |
555 | cmp [Activate_instrument],0 |
535 | jne no_null_spray |
556 | jne no_null_spray |
Line 536... | Line 557... | ||
536 | mov [Activate_instrument],1 |
557 | mov [Activate_instrument],1 |
537 | jmp still |
558 | ret |
538 | no_null_spray: |
559 | no_null_spray: |
Line 608... | Line 629... | ||
608 | inc edx |
629 | inc edx |
609 | cmp edx,20 |
630 | cmp edx,20 |
610 | jl brush_y_spray |
631 | jl brush_y_spray |
Line 611... | Line 632... | ||
611 | 632 | ||
612 | call MovePictureToWorkScreen |
633 | call MovePictureToWorkScreen |
613 | jmp still |
- | |
614 | 634 | ret |
|
Line 615... | Line 635... | ||
615 | no_spray: |
635 | no_spray: |
616 | 636 | ||
617 | ;************************palette************************ |
637 | ;************************palette************************ |
Line 647... | Line 667... | ||
647 | add esi,4 |
667 | add esi,4 |
648 | dec edi |
668 | dec edi |
649 | jnz next_rectangle |
669 | jnz next_rectangle |
Line 650... | Line 670... | ||
650 | 670 | ||
651 | wait_events: |
671 | wait_events: |
Line 652... | Line 672... | ||
652 | call event |
672 | mcall SF_WAIT_EVENT |
653 | 673 | ||
- | 674 | cmp eax,1 |
|
654 | cmp eax,1 |
675 | jne @f |
655 | je still |
676 | ret |
656 | 677 | @@: |
|
657 | cmp eax,2 |
- | |
658 | jne no_keys |
678 | cmp eax,2 |
659 | - | ||
- | 679 | jne no_keys |
|
660 | mcall SF_GET_KEY |
680 | mcall SF_GET_KEY |
661 | - | ||
662 | no_keys: |
681 | jmp wait_events |
663 | 682 | no_keys: |
|
664 | cmp eax,3 |
683 | cmp eax,3 |
665 | jne no_buttons |
- | |
- | 684 | jne no_buttons |
|
666 | mcall SF_GET_BUTTON |
685 | mcall SF_GET_BUTTON |
667 | - | ||
668 | no_buttons: |
686 | jmp wait_events |
669 | 687 | no_buttons: |
|
Line 670... | Line 688... | ||
670 | cmp eax,6 |
688 | cmp eax,6 |
Line 714... | Line 732... | ||
714 | 732 | ||
Line 715... | Line 733... | ||
715 | call drawwin |
733 | call drawwin |
716 | 734 | ||
717 | mov eax,[Last_instrument] |
- | |
718 | mov [Current_instrument],eax |
735 | mov eax,[Last_instrument] |
719 | 736 | mov [Current_instrument],eax |
|
Line 720... | Line 737... | ||
720 | jmp still |
737 | ret |
721 | no_palette: |
738 | no_palette: |
722 | 739 | ||
Line 737... | Line 754... | ||
737 | mov [OldY],ebx |
754 | mov [OldY],ebx |
738 | mov [Activate_instrument],1 |
755 | mov [Activate_instrument],1 |
739 | xor eax,eax |
756 | xor eax,eax |
740 | mov ecx,mem_flood_f/4 |
757 | mov ecx,mem_flood_f/4 |
741 | mov edi,[ReserveArray] |
758 | mov edi,[ReserveArray] |
- | 759 | cld |
|
742 | rep stosd |
760 | rep stosd |
743 | jmp still |
761 | ret |
744 | no_new_line_xy: |
762 | no_new_line_xy: |
Line 745... | Line 763... | ||
745 | 763 | ||
746 | ;put saved pixels |
764 | ;put saved pixels |
Line 780... | Line 798... | ||
780 | 798 | ||
781 | ;draw calculated pixels on work arrea |
799 | ;draw calculated pixels on work arrea |
Line 782... | Line 800... | ||
782 | draw_calc_pixels width_pixels |
800 | draw_calc_pixels width_pixels |
783 | 801 | ||
784 | call MovePictureToWorkScreen |
802 | call MovePictureToWorkScreen |
Line 785... | Line 803... | ||
785 | jmp still |
803 | ret |
786 | no_line: |
804 | no_line: |
787 | 805 | ||
Line 802... | Line 820... | ||
802 | mov [OldY],ebx |
820 | mov [OldY],ebx |
803 | mov [Activate_instrument],1 |
821 | mov [Activate_instrument],1 |
804 | xor eax,eax |
822 | xor eax,eax |
805 | mov ecx,mem_flood_f/4 |
823 | mov ecx,mem_flood_f/4 |
806 | mov edi,[ReserveArray] |
824 | mov edi,[ReserveArray] |
- | 825 | cld |
|
807 | rep stosd |
826 | rep stosd |
808 | jmp still |
827 | ret |
809 | no_new_rectangle_xy: |
828 | no_new_rectangle_xy: |
Line 810... | Line 829... | ||
810 | 829 | ||
811 | ;put saved pixels |
830 | ;put saved pixels |
Line 845... | Line 864... | ||
845 | 864 | ||
846 | ;draw calculated pixels on work arrea |
865 | ;draw calculated pixels on work arrea |
Line 847... | Line 866... | ||
847 | draw_calc_pixels width_pixels_rectangle |
866 | draw_calc_pixels width_pixels_rectangle |
848 | 867 | ||
849 | call MovePictureToWorkScreen |
868 | call MovePictureToWorkScreen |
Line 850... | Line 869... | ||
850 | jmp still |
869 | ret |
851 | no_rectangle: |
870 | no_rectangle: |
852 | 871 | ||
Line 867... | Line 886... | ||
867 | mov [OldY],ebx |
886 | mov [OldY],ebx |
868 | mov [Activate_instrument],1 |
887 | mov [Activate_instrument],1 |
869 | xor eax,eax |
888 | xor eax,eax |
870 | mov ecx,mem_flood_f/4 |
889 | mov ecx,mem_flood_f/4 |
871 | mov edi,[ReserveArray] |
890 | mov edi,[ReserveArray] |
- | 891 | cld |
|
872 | rep stosd |
892 | rep stosd |
873 | jmp still |
893 | ret |
874 | no_new_circle_xy: |
894 | no_new_circle_xy: |
Line 875... | Line 895... | ||
875 | 895 | ||
876 | ;put saved pixels |
896 | ;put saved pixels |
Line 997... | Line 1017... | ||
997 | 1017 | ||
998 | ;draw calculated pixels on work arrea |
1018 | ;draw calculated pixels on work arrea |
Line 999... | Line 1019... | ||
999 | draw_calc_pixels width_pixels |
1019 | draw_calc_pixels width_pixels |
1000 | 1020 | ||
1001 | call MovePictureToWorkScreen |
1021 | call MovePictureToWorkScreen |
Line 1002... | Line 1022... | ||
1002 | jmp still |
1022 | ret |
1003 | no_circle: |
1023 | no_circle: |
1004 | 1024 | ||
1005 | ;************************zoom 1************************* |
1025 | ;************************zoom 1************************* |
1006 | cmp eax,45 |
1026 | cmp eax,45 |
1007 | jne no_1_ |
1027 | jne no_1_ |
1008 | mov [k],1 |
1028 | mov [k],1 |
1009 | call scrollbar_move_00 |
1029 | call scrollbar_move_00 |
1010 | and [Current_instrument],0 |
1030 | and [Current_instrument],0 |
Line 1011... | Line 1031... | ||
1011 | call drawwin |
1031 | call drawwin |
1012 | jmp still |
1032 | ret |
1013 | no_1_: |
1033 | no_1_: |
1014 | 1034 | ||
1015 | ;************************zoom 2************************* |
1035 | ;************************zoom 2************************* |
1016 | cmp eax,46 |
1036 | cmp eax,46 |
1017 | jne no_2_ |
1037 | jne no_2_ |
1018 | mov [k],2 |
1038 | mov [k],2 |
1019 | call drawwin |
1039 | call drawwin |
Line 1020... | Line -... | ||
1020 | call scrollbar_move_00 |
- | |
1021 | and [Current_instrument],0 |
1040 | call scrollbar_move_00 |
1022 | jmp still |
1041 | and [Current_instrument],0 |
1023 | no_2_: |
1042 | ret |
1024 | 1043 | no_2_: |
|
1025 | 1044 | ||
1026 | ;************************zoom 3************************* |
1045 | ;************************zoom 3************************* |
1027 | cmp eax,47 |
1046 | cmp eax,47 |
1028 | jne no_3_ |
1047 | jne no_3_ |
1029 | mov [k],3 |
1048 | mov [k],3 |
Line 1030... | Line 1049... | ||
1030 | call drawwin |
1049 | call drawwin |
1031 | call scrollbar_move_00 |
1050 | call scrollbar_move_00 |
1032 | and [Current_instrument],0 |
1051 | and [Current_instrument],0 |
1033 | jmp still |
1052 | ret |
1034 | no_3_: |
1053 | no_3_: |
1035 | 1054 | ||
1036 | ;************************zoom 4************************* |
1055 | ;************************zoom 4************************* |
1037 | cmp eax,48 |
1056 | cmp eax,48 |
1038 | jne no_4_ |
1057 | jne no_4_ |
Line 1039... | Line 1058... | ||
1039 | mov [k],4 |
1058 | mov [k],4 |
1040 | call drawwin |
1059 | call drawwin |
1041 | call scrollbar_move_00 |
1060 | call scrollbar_move_00 |
1042 | and [Current_instrument],0 |
1061 | and [Current_instrument],0 |
1043 | jmp still |
1062 | ret |
1044 | no_4_: |
1063 | no_4_: |
1045 | 1064 | ||
1046 | ;************************zoom 8************************* |
1065 | ;************************zoom 8************************* |
1047 | cmp eax,49 |
1066 | cmp eax,49 |
Line 1048... | Line 1067... | ||
1048 | jne no_8_ |
1067 | jne no_8_ |
1049 | mov [k],8 |
1068 | mov [k],8 |
1050 | call drawwin |
1069 | call drawwin |
1051 | call scrollbar_move_00 |
1070 | call scrollbar_move_00 |
1052 | and [Current_instrument],0 |
1071 | and [Current_instrument],0 |
1053 | jmp still |
1072 | ret |
1054 | no_8_: |
1073 | no_8_: |
1055 | 1074 | ||
1056 | ;************************zoom 16************************ |
1075 | ;************************zoom 16************************ |
Line 1057... | Line 1076... | ||
1057 | cmp eax,50 |
1076 | cmp eax,50 |
1058 | jne no_16_ |
1077 | jne no_16_ |
1059 | mov [k],16 |
1078 | mov [k],16 |
Line 1088... | Line 1107... | ||
1088 | and [crossing],0 |
1107 | and [crossing],0 |
1089 | and [finishing_crossing],0 |
1108 | and [finishing_crossing],0 |
1090 | xor eax,eax |
1109 | xor eax,eax |
1091 | mov ecx,mem_flood_f/4 |
1110 | mov ecx,mem_flood_f/4 |
1092 | mov edi,[ReserveArray] |
1111 | mov edi,[ReserveArray] |
- | 1112 | cld |
|
1093 | rep stosd |
1113 | rep stosd |
1094 | jmp still |
1114 | ret |
1095 | no_new_allocation_xy: |
1115 | no_new_allocation_xy: |
1096 | instrument_not_finished_work: |
1116 | instrument_not_finished_work: |
Line 1097... | Line 1117... | ||
1097 | 1117 | ||
1098 | mov al,[instrument_used] |
1118 | mov al,[instrument_used] |
Line 1184... | Line 1204... | ||
1184 | mov edx,[ScreenY] |
1204 | mov edx,[ScreenY] |
1185 | mov esi,[SpriteSizeX] |
1205 | mov esi,[SpriteSizeX] |
1186 | mov edi,[SpriteSizeY] |
1206 | mov edi,[SpriteSizeY] |
1187 | add ecx,[PosX] |
1207 | add ecx,[PosX] |
1188 | add edx,[PosY] |
1208 | add edx,[PosY] |
1189 | inc esi;eax |
1209 | inc esi |
1190 | inc edi;ebx |
1210 | inc edi |
1191 | call columnus |
1211 | call columnus |
Line 1192... | Line 1212... | ||
1192 | 1212 | ||
1193 | test eax,eax |
1213 | test eax,eax |
1194 | jnz crossing_with_work_area |
1214 | jnz crossing_with_work_area |
Line 1314... | Line 1334... | ||
1314 | and [Activate_instrument],0 |
1334 | and [Activate_instrument],0 |
1315 | and [crossing],0 |
1335 | and [crossing],0 |
1316 | and [instrument_used],0 |
1336 | and [instrument_used],0 |
1317 | and [DrawSprite_flag],0 |
1337 | and [DrawSprite_flag],0 |
1318 | call MovePictureToWorkScreen |
1338 | call MovePictureToWorkScreen |
1319 | jmp still |
1339 | ret |
1320 | not_finish_from_instrument_crossing: |
1340 | not_finish_from_instrument_crossing: |
Line 1321... | Line 1341... | ||
1321 | 1341 | ||
1322 | ;calculate line |
1342 | ;calculate line |
1323 | mov ebx,[ReserveArray] |
1343 | mov ebx,[ReserveArray] |
Line 1408... | Line 1428... | ||
1408 | mov [rectangular_shade_x],eax |
1428 | mov [rectangular_shade_x],eax |
1409 | mov [rectangular_shade_y],ebx |
1429 | mov [rectangular_shade_y],ebx |
1410 | no_save_shades: |
1430 | no_save_shades: |
Line 1411... | Line 1431... | ||
1411 | 1431 | ||
1412 | call MovePictureToWorkScreen |
1432 | call MovePictureToWorkScreen |
1413 | jmp still |
1433 | ret |
Line 1414... | Line 1434... | ||
1414 | no_allocation: |
1434 | no_allocation: |
1415 | 1435 | ||
1416 | ;*************reflection from left to right************* |
1436 | ;*************reflection from left to right************* |
Line 1491... | Line 1511... | ||
1491 | 1511 | ||
1492 | dec esi |
1512 | dec esi |
Line 1493... | Line 1513... | ||
1493 | jnz next_line_reflection_x |
1513 | jnz next_line_reflection_x |
1494 | 1514 | ||
1495 | call MovePictureToWorkScreen |
1515 | call MovePictureToWorkScreen |
Line 1496... | Line 1516... | ||
1496 | jmp still |
1516 | ret |
1497 | no_reflection_from_left_to_right: |
1517 | no_reflection_from_left_to_right: |
1498 | 1518 | ||
Line 1543... | Line 1563... | ||
1543 | sub edi,esi |
1563 | sub edi,esi |
1544 | dec ecx |
1564 | dec ecx |
1545 | jnz next_lines_reflection |
1565 | jnz next_lines_reflection |
Line 1546... | Line 1566... | ||
1546 | 1566 | ||
1547 | call MovePictureToWorkScreen |
1567 | call MovePictureToWorkScreen |
1548 | jmp still |
1568 | ret |
Line 1549... | Line 1569... | ||
1549 | no_reflection_from_up_to_down: |
1569 | no_reflection_from_up_to_down: |
1550 | 1570 | ||
1551 | ;*********************draw hard contour***************** |
1571 | ;*********************draw hard contour***************** |
Line 1634... | Line 1654... | ||
1634 | add ebx,[PosY] |
1654 | add ebx,[PosY] |
1635 | mov [used_OldX],eax |
1655 | mov [used_OldX],eax |
1636 | mov [used_OldY],ebx |
1656 | mov [used_OldY],ebx |
Line 1637... | Line 1657... | ||
1637 | 1657 | ||
1638 | call MovePictureToWorkScreen |
- | |
1639 | 1658 | call MovePictureToWorkScreen |
|
1640 | jmp still |
- | |
1641 | 1659 | ret |
|
- | 1660 | no_kontur_: |
|
1642 | no_kontur_: |
1661 | |
1643 | ;************************draw ellips******************** |
1662 | ;************************draw ellips******************** |
1644 | cmp eax,19 |
1663 | cmp eax,19 |
Line 1645... | Line 1664... | ||
1645 | jne no_ellips |
1664 | jne no_ellips |
Line 1657... | Line 1676... | ||
1657 | mov [OldY],ebx |
1676 | mov [OldY],ebx |
1658 | mov [Activate_instrument],1 |
1677 | mov [Activate_instrument],1 |
1659 | xor eax,eax |
1678 | xor eax,eax |
1660 | mov ecx,mem_flood_f/4 |
1679 | mov ecx,mem_flood_f/4 |
1661 | mov edi,[ReserveArray] |
1680 | mov edi,[ReserveArray] |
- | 1681 | cld |
|
1662 | rep stosd |
1682 | rep stosd |
1663 | jmp still |
1683 | ret |
1664 | no_new_ellips_xy: |
1684 | no_new_ellips_xy: |
Line 1665... | Line 1685... | ||
1665 | 1685 | ||
1666 | ;put saved pixels |
1686 | ;put saved pixels |
Line 1779... | Line 1799... | ||
1779 | 1799 | ||
1780 | ;draw calculated pixels on work arrea |
1800 | ;draw calculated pixels on work arrea |
Line 1781... | Line 1801... | ||
1781 | draw_calc_pixels width_pixels |
1801 | draw_calc_pixels width_pixels |
1782 | 1802 | ||
1783 | call MovePictureToWorkScreen |
1803 | call MovePictureToWorkScreen |
Line 1784... | Line -... | ||
1784 | jmp still |
- | |
1785 | no_ellips: |
- | |
1786 | 1804 | ;ret |
|
1787 | 1805 | no_ellips: |