Fix for drawbackground mode of tiled.

git-svn-id: svn://kolibrios.org@2464 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Marat Zakiyanov (Mario79) 2012-03-15 11:15:06 +00:00
parent cd505ed9b1
commit 272e29533c

View File

@ -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