Not the whole screenbuffer width was accessible
This commit is contained in:
parent
1b9f7f8ee5
commit
55fb99f0e1
2 changed files with 11 additions and 1 deletions
|
@ -17,7 +17,8 @@ putpixel:
|
||||||
add edi, eax
|
add edi, eax
|
||||||
|
|
||||||
mov eax, [ebp+8] ;x
|
mov eax, [ebp+8] ;x
|
||||||
mul byte [mbootinfo.fb_bytespp]
|
movzx ebx, byte [mbootinfo.fb_bytespp]
|
||||||
|
mul ebx
|
||||||
add edi, eax
|
add edi, eax
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -98,6 +98,15 @@ start:
|
||||||
|
|
||||||
add esp, 36 ;Clean reserved uitoa return string from stack
|
add esp, 36 ;Clean reserved uitoa return string from stack
|
||||||
|
|
||||||
|
; Draw a test pixel to bottom right corner
|
||||||
|
mov eax, 0xff
|
||||||
|
mov ebx, 767
|
||||||
|
mov ecx, 1023
|
||||||
|
push 0xff
|
||||||
|
push 767
|
||||||
|
push 1023
|
||||||
|
call putpixel
|
||||||
|
add esp, 3*4
|
||||||
|
|
||||||
rOSkalogodraw:
|
rOSkalogodraw:
|
||||||
mov esi, roskalogo
|
mov esi, roskalogo
|
||||||
|
|
Loading…
Reference in a new issue