Subversion Repositories Kolibri OS

Rev

Rev 1792 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1792 Rev 4631
1
draw_menu_bar:
1
draw_menu_bar:
2
    mov   ecx,[skin_high]
2
    mov   ecx,[skin_high]
3
    shl   ecx,16
3
    shl   ecx,16
4
    mov   cx,19
4
    mov   cx,19
5
    mov   ebx,[window_width]
5
    mov   ebx,[window_width]
6
    sub   ebx,9
6
    sub   ebx,9
7
    add   ebx,5 shl 16
7
    add   ebx,5 shl 16
8
    mcall 13,,,0xcccccc
8
    mcall 13,,,0xcccccc
9
    add   ecx,37 shl 16
9
    add   ecx,37 shl 16
10
    mov   cx,3
10
    mov   cx,3
11
    mcall
11
    mcall
12
    push  ecx
12
    push  ecx
13
    add   ecx,16 shl 16
13
    add   ecx,16 shl 16
14
    mcall
14
    mcall
15
    add   ecx,16 shl 16
15
    add   ecx,16 shl 16
16
    mov   cx,1
16
    mov   cx,1
17
    mcall
17
    mcall
18
    pop   ecx
18
    pop   ecx
19
    add   ecx,3 shl 16
19
    add   ecx,3 shl 16
20
    mov   eax,[window_high]
20
    mov   eax,[window_high]
21
    shr   ecx,16
21
    shr   ecx,16
22
    sub   eax,ecx
22
    sub   eax,ecx
23
    sub   eax,4
23
    sub   eax,4
24
    shl   ecx,16
24
    shl   ecx,16
25
    add   ecx,eax
25
    add   ecx,eax
26
    mov   bx,2
26
    mov   bx,2
27
    sub   ecx,33
27
    sub   ecx,33
28
    mcall 13
28
    mcall 13
29
    push  ebx
29
    push  ebx
30
    ror   ebx,16
30
    ror   ebx,16
31
    mov   bx,[right_panel_x.start_x]
31
    mov   bx,[right_panel_x.start_x]
32
    sub   bx,2
32
    sub   bx,2
33
    rol   ebx,16
33
    rol   ebx,16
-
 
34
    push  ecx
-
 
35
    sub   ecx,13
-
 
36
    add   ecx,13 shl 16
-
 
37
    mcall	; middle vertical line
34
    mcall
38
    pop   ecx
35
    pop   ebx
39
    pop   ebx
36
    mov   ax,cx
40
    mov   ax,cx
37
    dec   ax
41
    dec   ax
38
    shl   eax,16
42
    shl   eax,16
39
    add   ecx,eax
43
    add   ecx,eax
40
    mov   cx,3
44
    mov   cx,3
41
    mov   eax,[window_width] 
45
    mov   eax,[window_width] 
42
    mov   bx,ax
46
    mov   bx,ax
43
    sub   ebx,9
47
    sub   ebx,9
44
    mcall 13
48
    mcall 13
45
    add   ecx,15 shl 16
49
    add   ecx,15 shl 16
46
    mcall
50
    mcall
47
    ret
51
    ret