Rev 753 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 753 | Rev 1276 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 7... | Line 7... | ||
7 | 7 | ||
Line 8... | Line 8... | ||
8 | $Revision: 753 $ |
8 | $Revision: 1276 $ |
9 | 9 | ||
10 | 10 | ||
Line 22... | Line 22... | ||
22 | uglobal |
22 | uglobal |
23 | old_screen_width dd ? |
23 | old_screen_width dd ? |
24 | old_screen_height dd ? |
24 | old_screen_height dd ? |
25 | endg |
25 | endg |
Line 26... | Line 26... | ||
26 | 26 | ||
- | 27 | ; cmp eax,13 ; CALL VIDEOMODE DRIVER FUNCTIONS |
|
27 | cmp eax,13 ; CALL VIDEOMODE DRIVER FUNCTIONS |
28 | dec ebx |
28 | jne .no_vmode_drv_access |
29 | jnz .no_vmode_drv_access |
29 | pushd [Screen_Max_X] [Screen_Max_Y] |
30 | pushd [Screen_Max_X] [Screen_Max_Y] |
30 | popd [old_screen_height] [old_screen_width] |
31 | popd [old_screen_height] [old_screen_width] |
31 | or eax,-1 ; If driver is absent then eax does not change |
32 | or eax,-1 ; If driver is absent then eax does not change |
32 | call (VMODE_BASE+0x100) ; Entry point of video driver |
33 | call (VMODE_BASE+0x100) ; Entry point of video driver |
33 | mov [esp+36],eax |
34 | mov [esp+36-4],eax |
34 | mov [esp+24],ebx |
35 | mov [esp+24-4],ebx |
35 | mov [esp+32],ecx |
36 | mov [esp+32-4],ecx |
36 | ; mov [esp+28],edx |
37 | ; mov [esp+28],edx |
37 | mov eax,[old_screen_width] |
38 | mov eax,[old_screen_width] |
38 | mov ebx,[old_screen_height] |
39 | mov ebx,[old_screen_height] |
39 | sub eax,[Screen_Max_X] |
40 | sub eax,[Screen_Max_X] |
Line 44... | Line 45... | ||
44 | @@: sub ebx,[Screen_Max_Y] |
45 | @@: sub ebx,[Screen_Max_Y] |
45 | .lp1: sub [screen_workarea.right],eax |
46 | .lp1: sub [screen_workarea.right],eax |
46 | sub [screen_workarea.bottom],ebx |
47 | sub [screen_workarea.bottom],ebx |
Line 47... | Line 48... | ||
47 | 48 | ||
48 | call repos_windows |
49 | call repos_windows |
49 | mov eax, 0 |
50 | xor eax,eax |
50 | mov ebx, 0 |
51 | xor ebx,ebx |
51 | mov ecx, [Screen_Max_X] |
52 | mov ecx, [Screen_Max_X] |
52 | mov edx, [Screen_Max_Y] |
53 | mov edx, [Screen_Max_Y] |
Line 53... | Line 54... | ||
53 | call calculatescreen |
54 | call calculatescreen |