Subversion Repositories Kolibri OS

Rev

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

Rev 307 Rev 5158
Line 15... Line 15...
15
	bt	dword [use_rect.flags],1
15
	bt	dword [use_rect.flags],1
16
	jc	copy_area
16
	jc	copy_area
Line 17... Line 17...
17
 
17
 
18
	cmp	csi_bitspp,word 24
18
	cmp	csi_bitspp,word 24
-
 
19
	je	.next_str_24
-
 
20
	cmp	csi_bitspp,word 16
Line 19... Line 21...
19
	je	.next_str_24
21
	je	.next_str_16
20
 
22
 
21
.next_str_32:
23
.next_str_32:
22
	push	edx ebx
24
	push	edx ebx
Line 62... Line 64...
62
	cmp	bx,csi_height
64
	cmp	bx,csi_height
63
	jl	.next_str_24
65
	jl	.next_str_24
64
popa
66
popa
65
ret
67
ret
Line -... Line 68...
-
 
68
 
-
 
69
.next_str_16:
-
 
70
	push	edx ebx
-
 
71
	xor	ebx,ebx
-
 
72
@@:
-
 
73
	;push	 eax
-
 
74
	mov	eax,[gs:edx]
-
 
75
	shl	eax, 3
-
 
76
	ror	eax, 8
-
 
77
	shl	ax, 2
-
 
78
	ror	eax, 8
-
 
79
	shl	al, 3
-
 
80
	mov	[edi+ecx+2],al
-
 
81
	rol	eax, 16
-
 
82
	mov	[edi+ecx],ax
-
 
83
	;pop	 eax
-
 
84
	add	ecx,3
-
 
85
	add	edx,2
-
 
86
	inc	bx
-
 
87
	cmp	bx,csi_width
-
 
88
	jl     @b
-
 
89
	pop	ebx edx
-
 
90
	add	edx,csi_bytesps
-
 
91
	inc	bx
-
 
92
	cmp	bx,csi_height
-
 
93
	jl	.next_str_16
-
 
94
popa
-
 
95
ret
66
 
96
 
67
copy_area:
97
copy_area:
68
	mov	eax,[scr.bytesps]
98
	mov	eax,[scr.bytesps]
69
	mov	ebx,eax
99
	mov	ebx,eax
70
	movzx	ecx,word [rect.top]
100
	movzx	ecx,word [rect.top]