Rev 8047 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8047 | Rev 8232 | ||
---|---|---|---|
Line 749... | Line 749... | ||
749 | push ecx |
749 | push ecx |
750 | mov edi,[screen_ptr] |
750 | mov edi,[screen_ptr] |
751 | movzx ecx,word[size_x_var] ;SIZE_X*3/4 |
751 | movzx ecx,word[size_x_var] ;SIZE_X*3/4 |
Line 752... | Line 752... | ||
752 | 752 | ||
753 | cmp [dr_flag],12 |
753 | cmp [dr_flag],12 |
754 | je @f |
754 | jge @f |
755 | lea ecx,[ecx*3+1] |
755 | lea ecx,[ecx*3+1] |
756 | shr ecx,2 |
756 | shr ecx,2 |
Line 757... | Line 757... | ||
757 | @@: |
757 | @@: |
Line 762... | Line 762... | ||
762 | movzx ebx,word[size_x_var] |
762 | movzx ebx,word[size_x_var] |
763 | movzx ecx,word[size_y_var] |
763 | movzx ecx,word[size_y_var] |
764 | sub ecx,3 |
764 | sub ecx,3 |
765 | imul ecx,ebx |
765 | imul ecx,ebx |
766 | cmp [dr_flag],12 ; 32 bit per pix cause |
766 | cmp [dr_flag],12 ; 32 bit per pix cause |
767 | je @f |
767 | jge @f |
768 | lea ecx,[ecx*3] |
768 | lea ecx,[ecx*3] |
769 | shr ecx,4 |
769 | shr ecx,4 |
770 | lea ebx,[ebx *3] |
770 | lea ebx,[ebx *3] |
771 | jmp .blr |
771 | jmp .blr |
772 | @@: |
772 | @@: |
Line 780... | Line 780... | ||
780 | movups xmm0,[edi+ebx] |
780 | movups xmm0,[edi+ebx] |
781 | mov ecx,edi |
781 | mov ecx,edi |
782 | sub ecx,ebx |
782 | sub ecx,ebx |
783 | movups xmm1,[ecx] |
783 | movups xmm1,[ecx] |
784 | cmp [dr_flag],12 |
784 | cmp [dr_flag],12 |
785 | je @f |
785 | jge @f |
786 | movups xmm2,[edi-3] |
786 | movups xmm2,[edi-3] |
787 | movups xmm3,[edi+3] |
787 | movups xmm3,[edi+3] |
788 | jmp .f |
788 | jmp .f |
789 | @@: |
789 | @@: |
790 | movups xmm2,[edi-4] |
790 | movups xmm2,[edi-4] |
Line 801... | Line 801... | ||
801 | loop .blr |
801 | loop .blr |
802 | end if |
802 | end if |
803 | xor eax,eax |
803 | xor eax,eax |
804 | movzx ecx,word[size_x_var] |
804 | movzx ecx,word[size_x_var] |
805 | cmp [dr_flag],12 |
805 | cmp [dr_flag],12 |
806 | je @f |
806 | jge @f |
807 | lea ecx,[ecx*3] |
807 | lea ecx,[ecx*3] |
808 | shr ecx,2 |
808 | shr ecx,2 |
809 | @@: |
809 | @@: |
810 | ; mov ecx,SIZE_X*3/4 |
810 | ; mov ecx,SIZE_X*3/4 |
811 | rep stosd |
811 | rep stosd |