Subversion Repositories Kolibri OS

Rev

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

Rev 1792 Rev 2584
Line 1019... Line 1019...
1019
    dec   ebp
1019
    dec   ebp
1020
    jnz   .start
1020
    jnz   .start
1021
    ret
1021
    ret
1022
;---------------------------------------------------------------------
1022
;---------------------------------------------------------------------
1023
draw_fbutton:
1023
draw_fbutton:
-
 
1024
	test	[window_status],100b	; window is rolled up
-
 
1025
	jnz	.exit
-
 
1026
 
-
 
1027
	test	[window_status],10b	; window is minimized to panel
-
 
1028
	jnz	.exit
-
 
1029
 
1024
    mov   ecx,[window_high]
1030
    mov   ecx,[window_high]
1025
    sub   ecx,20
1031
    sub   ecx,20
1026
    shl   ecx,16
1032
    shl   ecx,16
1027
    add   ecx,15
1033
    add   ecx,15
1028
    mov   eax,[window_width]
1034
    mov   eax,[window_width]
Line 1080... Line 1086...
1080
    ret
1086
    ret
1081
.rol_ror:
1087
.rol_ror:
1082
    rol   ebx,16
1088
    rol   ebx,16
1083
    add   ebx,[fbutton_width]
1089
    add   ebx,[fbutton_width]
1084
    ror   ebx,16
1090
    ror   ebx,16
-
 
1091
.exit:
1085
    ret
1092
    ret
1086
;---------------------------------------------------------------------
1093
;---------------------------------------------------------------------
1087
draw_fbutton_name:
1094
draw_fbutton_name:
1088
    mov   ebx, 7 shl 16
1095
    mov   ebx, 7 shl 16
1089
    add   ebx,[window_high]
1096
    add   ebx,[window_high]