forked from KolibriOS/kolibrios
Decrease size of shadow buffer for VGA. The old size is 2-fold excess of actual need.
git-svn-id: svn://kolibrios.org@2398 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
852732a9b1
commit
e4aa2672b0
@ -358,7 +358,9 @@ proc init_LFB
|
|||||||
cmp dword [LFBAddress], -1
|
cmp dword [LFBAddress], -1
|
||||||
jne @f
|
jne @f
|
||||||
mov [BOOT_VAR+0x901c], byte 2
|
mov [BOOT_VAR+0x901c], byte 2
|
||||||
stdcall alloc_pages, (0x280000 / 4096)
|
; max VGA=640*480*4=1228800 bytes
|
||||||
|
; + 32*640*4=81920 bytes for mouse pointer
|
||||||
|
stdcall alloc_pages, ((1228800+81920)/4096)
|
||||||
|
|
||||||
push eax
|
push eax
|
||||||
call alloc_page
|
call alloc_page
|
||||||
@ -366,7 +368,9 @@ proc init_LFB
|
|||||||
pop eax
|
pop eax
|
||||||
or eax, PG_UW
|
or eax, PG_UW
|
||||||
mov ebx, LFB_BASE
|
mov ebx, LFB_BASE
|
||||||
mov ecx, 0x280000 / 4096
|
; max VGA=640*480*4=1228800 bytes
|
||||||
|
; + 32*640*4=81920 bytes for mouse pointer
|
||||||
|
mov ecx, (1228800+81920)/4096
|
||||||
call commit_pages
|
call commit_pages
|
||||||
mov [LFBAddress], dword LFB_BASE
|
mov [LFBAddress], dword LFB_BASE
|
||||||
ret
|
ret
|
||||||
|
Loading…
Reference in New Issue
Block a user