Subversion Repositories Kolibri OS

Rev

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

Rev 112 Rev 381
Line 14... Line 14...
14
  old_screen_height dd ?
14
  old_screen_height dd ?
15
endg
15
endg
Line 16... Line 16...
16
 
16
 
17
     cmp  eax,13                 ; CALL VIDEOMODE DRIVER FUNCTIONS
17
     cmp  eax,13                 ; CALL VIDEOMODE DRIVER FUNCTIONS
18
     jne  .no_vmode_drv_access
18
     jne  .no_vmode_drv_access
19
	pushd	[0x0000fe00] [0x0000fe04]
19
        pushd   [ScreenWidth] [ScreenHeight]
20
	popd	[old_screen_height] [old_screen_width]
20
	popd	[old_screen_height] [old_screen_width]
21
     or   eax,-1                 ; If driver is absent then eax does not change
21
     or   eax,-1                 ; If driver is absent then eax does not change
22
     call 0x760100               ; Entry point of video driver
22
     call 0x760100               ; Entry point of video driver
23
     mov  [esp+36],eax
23
     mov  [esp+36],eax
24
     mov  [esp+24],ebx
24
     mov  [esp+24],ebx
25
     mov  [esp+32],ecx
25
     mov  [esp+32],ecx
26
;    mov  [esp+28],edx
26
;    mov  [esp+28],edx
27
	mov	eax,[old_screen_width]
27
	mov	eax,[old_screen_width]
28
	mov	ebx,[old_screen_height]
28
	mov	ebx,[old_screen_height]
29
	sub	eax,[0x0000fe00]
29
        sub     eax,[ScreenWidth]
30
	jnz	@f
30
	jnz	@f
31
	sub	ebx,[0x0000fe04]
31
        sub     ebx,[ScreenHeight]
32
	jz	.resolution_wasnt_changed
32
	jz	.resolution_wasnt_changed
33
	jmp	.lp1
33
	jmp	.lp1
34
    @@: sub	ebx,[0x0000fe04]
34
    @@: sub     ebx,[ScreenHeight]
35
  .lp1: sub	[screen_workarea.right],eax
35
  .lp1: sub	[screen_workarea.right],eax
Line 36... Line 36...
36
	sub	[screen_workarea.bottom],ebx
36
	sub	[screen_workarea.bottom],ebx
37
 
37
 
38
	call	repos_windows
38
	call	repos_windows
39
        mov     eax, 0
39
        mov     eax, 0
40
        mov     ebx, 0
40
        mov     ebx, 0
41
        mov     ecx, [0xfe00]
41
        mov     ecx, [ScreenWidth]
Line 42... Line 42...
42
        mov     edx, [0xfe04]
42
        mov     edx, [ScreenHeight]
43
	call	calculatescreen
43
	call	calculatescreen
44
 
44