Subversion Repositories Kolibri OS

Rev

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

Rev 617 Rev 629
Line 2... Line 2...
2
proc flush_cur_tab ;///// SAVE CURRENT TAB DATA TO CONTROL ///////////////////
2
proc flush_cur_tab ;///// SAVE CURRENT TAB DATA TO CONTROL ///////////////////
3
;-----------------------------------------------------------------------------
3
;-----------------------------------------------------------------------------
4
; EBP = TABITEM*
4
; EBP = TABITEM*
5
;-----------------------------------------------------------------------------
5
;-----------------------------------------------------------------------------
6
	push	ecx esi edi
6
	push	ecx esi edi
7
	mov	esi,cur_tab
-
 
8
	mov	edi,[tab_bar.Current.Ptr]
7
	mov	edi,[tab_bar.Current.Ptr]
-
 
8
	or	edi,edi
-
 
9
	jz	@f
-
 
10
	mov	esi,cur_tab
9
	mov	ecx,sizeof.TABITEM/4
11
	mov	ecx,sizeof.TABITEM/4
10
	cld
12
	cld
11
	rep	movsd
13
	rep	movsd
12
	pop	edi esi ecx
14
    @@: pop	edi esi ecx
13
	ret
15
	ret
14
endp
16
endp
Line 15... Line 17...
15
 
17
 
16
;-----------------------------------------------------------------------------
18
;-----------------------------------------------------------------------------
17
proc set_cur_tab ;///// SET SPECIFIED TAB CURRENT (FOCUS IT) /////////////////
19
proc set_cur_tab ;///// SET SPECIFIED TAB CURRENT (FOCUS IT) /////////////////
18
;-----------------------------------------------------------------------------
20
;-----------------------------------------------------------------------------
19
; EBP = TABITEM*
21
; EBP = TABITEM*
20
;-----------------------------------------------------------------------------
22
;-----------------------------------------------------------------------------
21
	push	ecx esi edi
-
 
22
	cmp	[tab_bar.Current.Ptr],0
-
 
23
	je	@f
23
	push	ecx esi edi
24
	call	flush_cur_tab
24
	call	flush_cur_tab
25
    @@: mov	esi,ebp
25
	mov	esi,ebp
26
	mov	edi,cur_tab
26
	mov	edi,cur_tab
27
	mov	ecx,sizeof.TABITEM/4
27
	mov	ecx,sizeof.TABITEM/4
28
	rep	movsd
28
	rep	movsd
29
	mov	[tab_bar.Current.Ptr],ebp
29
	mov	[tab_bar.Current.Ptr],ebp