forked from KolibriOS/kolibrios
fixed bug in tiled background, found by heavyiron
git-svn-id: svn://kolibrios.org@784 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
0d87986066
commit
90a098b648
@ -799,15 +799,15 @@ dp2:
|
||||
push eax
|
||||
xor edx, edx
|
||||
mov eax, ebx
|
||||
mov ecx, [BgrDataHeight]
|
||||
div ecx ; edx := y mod BgrDataHeight
|
||||
sub ecx, edx ; ecx := BgrDataHeight - (y mod BgrDataHeight)
|
||||
div dword [BgrDataHeight] ; edx := y mod BgrDataHeight
|
||||
pop eax
|
||||
push eax
|
||||
mov ecx, [BgrDataWidth]
|
||||
mov esi, edx
|
||||
imul esi, [BgrDataWidth] ; esi := (y mod BgrDataHeight) * BgrDataWidth
|
||||
imul esi, ecx ; esi := (y mod BgrDataHeight) * BgrDataWidth
|
||||
xor edx, edx
|
||||
div dword [BgrDataWidth] ; edx := x mod BgrDataWidth
|
||||
div ecx ; edx := x mod BgrDataWidth
|
||||
sub ecx, edx
|
||||
add esi, edx ; esi := (y mod BgrDataHeight)*BgrDataWidth + (x mod BgrDataWidth)
|
||||
pop eax
|
||||
lea esi, [esi*3]
|
||||
|
Loading…
Reference in New Issue
Block a user