Rev 1145 | Rev 2190 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1145 | Rev 2170 | ||
---|---|---|---|
Line 36... | Line 36... | ||
36 | pop [con.wnd_height] |
36 | pop [con.wnd_height] |
37 | pop [con.scr_width] |
37 | pop [con.scr_width] |
38 | pop [con.scr_height] |
38 | pop [con.scr_height] |
39 | pop [con.title] |
39 | pop [con.title] |
40 | push eax |
40 | push eax |
- | 41 | ||
- | 42 | push ebx |
|
- | 43 | ||
41 | mov ecx, 4 |
44 | mov ecx, 4 |
42 | mov eax, con.wnd_width |
45 | mov eax, con.wnd_width |
43 | mov esi, con.def_wnd_width |
46 | mov edx, con.def_wnd_width |
44 | .1: |
47 | .1: |
45 | cmp dword [eax], -1 |
48 | cmp dword [eax], -1 |
46 | jnz @f |
49 | jnz @f |
47 | mov ebx, [esi] |
50 | mov ebx, [edx] |
48 | mov [eax], ebx |
51 | mov [eax], ebx |
49 | @@: |
52 | @@: |
50 | add eax, 4 |
53 | add eax, 4 |
51 | add esi, 4 |
54 | add edx, 4 |
52 | loop .1 |
55 | loop .1 |
53 | push ebx |
- | |
54 | ; allocate memory for console data & bitmap data |
56 | ; allocate memory for console data & bitmap data |
55 | mov eax, [con.scr_width] |
57 | mov eax, [con.scr_width] |
56 | mul [con.scr_height] |
58 | mul [con.scr_height] |
57 | lea ecx, [eax+eax] |
59 | lea ecx, [eax+eax] |
58 | mov eax, [con.wnd_width] |
60 | mov eax, [con.wnd_width] |