Rev 103 | Rev 112 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 103 | Rev 105 | ||
---|---|---|---|
Line 2180... | Line 2180... | ||
2180 | mov [application_table_status],0 |
2180 | mov [application_table_status],0 |
2181 | or dword [esp+36],-1 |
2181 | or dword [esp+36],-1 |
2182 | ret |
2182 | ret |
Line 2183... | Line 2183... | ||
2183 | 2183 | ||
2184 | sysfn_activate: ; 18.3 = ACTIVATE WINDOW |
- | |
2185 | ;* start code - get active process (1) - Mario79 |
- | |
2186 | mov [window_minimize],2 |
- | |
2187 | ;* end code - get active process (1) - Mario79 |
2184 | sysfn_activate: ; 18.3 = ACTIVATE WINDOW |
2188 | cmp ebx,2 |
2185 | cmp ebx,2 |
2189 | jb nowindowactivate |
2186 | jb .nowindowactivate |
2190 | cmp ebx,[0x3004] |
2187 | cmp ebx,[0x3004] |
2191 | ja nowindowactivate |
- | |
- | 2188 | ja .nowindowactivate |
|
2192 | ; edi = position at window_data+ |
2189 | |
- | 2190 | mov [window_minimize], 2 ; restore window if minimized |
|
2193 | mov edi, ebx ; edi = process number |
2191 | |
2194 | movzx esi, word [0xC000 + ebx*2] |
2192 | movzx esi, word [0xC000 + ebx*2] |
2195 | cmp esi, [0x3004] ; number of processes |
2193 | cmp esi, [0x3004] |
- | 2194 | je .nowindowactivate ; already active |
|
- | 2195 | ||
- | 2196 | mov edi, ebx |
|
2196 | jz nowindowactivate ; continue if window_stack_value != number_of_processes |
2197 | shl edi, 5 |
2197 | ; i.e. if window is not already active |
2198 | add edi, window_data |
- | 2199 | movzx esi, word [0xC000 + ebx * 2] |
|
- | 2200 | lea esi, [0xC400 + esi * 2] |
|
2198 | mov [0xff01],edi ; activate |
2201 | call waredraw |
2199 | nowindowactivate: |
2202 | .nowindowactivate: |
Line 2200... | Line 2203... | ||
2200 | ret |
2203 | ret |
2201 | 2204 | ||
2202 | sysfn_getidletime: ; 18.4 = GET IDLETIME |
2205 | sysfn_getidletime: ; 18.4 = GET IDLETIME |
Line 3201... | Line 3204... | ||
3201 | mov edx,[0xfe00] ; screen x size |
3204 | mov edx,[0xfe00] ; screen x size |
3202 | inc edx |
3205 | inc edx |
3203 | imul edx, ebx |
3206 | imul edx, ebx |
3204 | mov dl, [eax+edx+display_data] ; lea eax, [...] |
3207 | mov dl, [eax+edx+display_data] ; lea eax, [...] |
Line 3205... | Line -... | ||
3205 | - | ||
3206 | mov eax, [0x3010] |
- | |
3207 | 3208 | ||
- | 3209 | xor ecx, ecx |
|
3208 | xor ecx, ecx |
3210 | mov eax, [0x3000] |
3209 | cmp byte [eax+0xe], dl |
3211 | cmp al, dl |
Line 3210... | Line 3212... | ||
3210 | setne cl |
3212 | setne cl |
3211 | 3213 |