Fix for drawbackground mode of tiled.
git-svn-id: svn://kolibrios.org@2464 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
cd505ed9b1
commit
272e29533c
@ -2444,6 +2444,12 @@ sys_background:
|
|||||||
mov eax, [BgrDataWidth]
|
mov eax, [BgrDataWidth]
|
||||||
imul eax, [BgrDataHeight]
|
imul eax, [BgrDataHeight]
|
||||||
lea eax, [eax*3]
|
lea eax, [eax*3]
|
||||||
|
; it is reserved with aligned to the boundary of 4 KB pages,
|
||||||
|
; otherwise there may be exceptions a page fault for vesa20_drawbackground_tiled
|
||||||
|
; because the 32 bit read is used for high performance: "mov eax,[esi]"
|
||||||
|
shr eax, 12
|
||||||
|
inc eax
|
||||||
|
shl eax, 12
|
||||||
mov [mem_BACKGROUND], eax
|
mov [mem_BACKGROUND], eax
|
||||||
; get memory for new background
|
; get memory for new background
|
||||||
stdcall kernel_alloc, eax
|
stdcall kernel_alloc, eax
|
||||||
|
Loading…
Reference in New Issue
Block a user