Rev 4140 | Rev 4195 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4140 | Rev 4157 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | n_main: |
1 | n_main: |
- | 2 | mov dword[nwin.width], 67 |
|
- | 3 | mov dword[nwin.height], 16 |
|
- | 4 | ||
- | 5 | mov dword[nwin.bgwidth], 66 |
|
- | 6 | mov dword[nwin.bgheight], 1 |
|
- | 7 | ||
2 | cmp dword[dock_items.location], 1 |
8 | cmp dword[dock_items.location], 1 |
3 | je .top |
9 | je .top |
4 | cmp dword[dock_items.location], 4 |
10 | cmp dword[dock_items.location], 4 |
5 | je .right |
11 | je .right |
6 | cmp dword[dock_items.location], 3 |
12 | cmp dword[dock_items.location], 3 |
7 | je .bottom |
13 | je .bottom |
8 | jmp .left |
14 | jmp .left |
- | 15 | ||
9 | .top: |
16 | .top: |
10 | mov eax, [win.height_opn] |
17 | mov eax, [win.height_opn] |
11 | mov [nwin.y], eax |
18 | mov [nwin.y], eax |
- | 19 | ||
- | 20 | mov dword[nwin.bgx], 1 |
|
- | 21 | ||
12 | jmp @f |
22 | jmp @f |
- | 23 | ||
13 | .right: |
24 | .left: |
14 | mov eax, [win.x_opn] |
25 | mov eax, [win.width_opn] |
15 | sub eax, 72 |
- | |
16 | mov [nwin.x], eax |
26 | mov [nwin.x], eax |
- | 27 | ||
- | 28 | mov dword[nwin.bgy], 1 |
|
- | 29 | mov dword[nwin.bgwidth], 1 |
|
- | 30 | mov eax, [nwin.height] |
|
- | 31 | dec eax |
|
- | 32 | mov dword[nwin.bgheight], eax |
|
- | 33 | ||
17 | jmp @f |
34 | jmp @f |
- | 35 | ||
18 | .bottom: |
36 | .bottom: |
19 | mov eax, [win.y_opn] |
37 | mov eax, [win.y_opn] |
20 | sub eax, 20 |
38 | sub eax, 16 |
21 | mov [nwin.y], eax |
39 | mov [nwin.y], eax |
- | 40 | ||
- | 41 | mov dword[nwin.bgx], 1 |
|
- | 42 | mov eax, [nwin.height] |
|
- | 43 | mov [nwin.bgy], eax |
|
- | 44 | ||
22 | jmp @f |
45 | jmp @f |
- | 46 | ||
23 | .left: |
47 | .right: |
24 | mov eax, [win.width_opn] |
48 | mov eax, [win.x_opn] |
25 | add eax, 4 |
49 | sub eax, 67 |
26 | mov [nwin.x], eax |
50 | mov [nwin.x], eax |
- | 51 | ||
- | 52 | mov eax, [nwin.width] |
|
- | 53 | mov [nwin.bgx], eax |
|
- | 54 | mov dword[nwin.bgy], 1 |
|
- | 55 | mov dword[nwin.bgwidth], 1 |
|
- | 56 | mov eax, [nwin.height] |
|
- | 57 | dec eax |
|
- | 58 | mov dword[nwin.bgheight], eax |
|
- | 59 | ||
27 | @@: |
60 | @@: |
28 | mov dword[nwin.width], 67 |
- | |
29 | mov dword[nwin.height], 16 |
- | |
Line 30... | Line 61... | ||
30 | 61 | ||
Line 31... | Line 62... | ||
31 | mcall 40, 1b |
62 | mcall 40, 1b |
32 | 63 | ||
Line 73... | Line 104... | ||
73 | n_event_redraw: |
104 | n_event_redraw: |
74 | mcall 12, 1 |
105 | mcall 12, 1 |
Line 75... | Line 106... | ||
75 | 106 | ||
Line 76... | Line -... | ||
76 | mcall 0, <[nwin.x], [nwin.width]>, <[nwin.y], [nwin.height]>, [color.bg], [color.bg], [color.frame] |
- | |
77 | 107 | mcall 0, <[nwin.x], [nwin.width]>, <[nwin.y], [nwin.height]>, [color.bg], [color.bg], [color.frame] |
|
78 | dec dword[nwin.width] |
- | |
Line 79... | Line 108... | ||
79 | mcall 13, <1, [nwin.width]>, <0, 1>, [color.bg] |
108 | |
80 | inc dword[nwin.width] |
109 | mcall 13, <[nwin.bgx], [nwin.bgwidth]>, <[nwin.bgy], [nwin.bgheight]>, [color.bg] |
81 | 110 | ||
Line 90... | Line 119... | ||
90 | jne @b |
119 | jne @b |
Line 91... | Line 120... | ||
91 | 120 | ||
92 | imul eax, 3 |
121 | imul eax, 3 |
93 | mov ebx, 34 |
122 | mov ebx, 34 |
94 | sub ebx, eax |
123 | sub ebx, eax |
95 | inc ebx |
124 | add ebx, 1 |
96 | shl ebx, 16 |
125 | shl ebx, 16 |
Line 97... | Line 126... | ||
97 | add ebx, 4 |
126 | add ebx, 5 |
Line 98... | Line 127... | ||
98 | 127 |