Subversion Repositories Kolibri OS

Rev

Rev 750 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 750 Rev 753
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: 750 $
8
$Revision: 753 $
9
 
9
 
10
 
10
 
Line 24... Line 24...
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
     jne  .no_vmode_drv_access
28
     jne  .no_vmode_drv_access
29
        pushd   [ScreenWidth] [ScreenHeight]
29
        pushd   [Screen_Max_X] [Screen_Max_Y]
30
	popd	[old_screen_height] [old_screen_width]
30
	popd	[old_screen_height] [old_screen_width]
31
     or   eax,-1                 ; If driver is absent then eax does not change
31
     or   eax,-1                 ; If driver is absent then eax does not change
32
     call (VMODE_BASE+0x100)     ; Entry point of video driver
32
     call (VMODE_BASE+0x100)     ; Entry point of video driver
33
     mov  [esp+36],eax
33
     mov  [esp+36],eax
34
     mov  [esp+24],ebx
34
     mov  [esp+24],ebx
35
     mov  [esp+32],ecx
35
     mov  [esp+32],ecx
36
;    mov  [esp+28],edx
36
;    mov  [esp+28],edx
37
	mov	eax,[old_screen_width]
37
	mov	eax,[old_screen_width]
38
	mov	ebx,[old_screen_height]
38
	mov	ebx,[old_screen_height]
39
        sub     eax,[ScreenWidth]
39
        sub     eax,[Screen_Max_X]
40
	jnz	@f
40
	jnz	@f
41
        sub     ebx,[ScreenHeight]
41
        sub     ebx,[Screen_Max_Y]
42
	jz	.resolution_wasnt_changed
42
	jz	.resolution_wasnt_changed
43
	jmp	.lp1
43
	jmp	.lp1
44
    @@: sub     ebx,[ScreenHeight]
44
    @@: sub     ebx,[Screen_Max_Y]
45
  .lp1: sub	[screen_workarea.right],eax
45
  .lp1: sub	[screen_workarea.right],eax
Line 46... Line 46...
46
	sub	[screen_workarea.bottom],ebx
46
	sub	[screen_workarea.bottom],ebx
47
 
47
 
48
	call	repos_windows
48
	call	repos_windows
49
        mov     eax, 0
49
        mov     eax, 0
50
        mov     ebx, 0
50
        mov     ebx, 0
51
        mov     ecx, [ScreenWidth]
51
        mov     ecx, [Screen_Max_X]
Line 52... Line 52...
52
        mov     edx, [ScreenHeight]
52
        mov     edx, [Screen_Max_Y]
53
	call	calculatescreen
53
	call	calculatescreen
54
 
54