Made screen.h use correct resolution instead of assuming

This commit is contained in:
2024-04-26 13:32:26 +02:00
parent e8c25ba41e
commit 642a5e2599
4 changed files with 73 additions and 17 deletions
+3 -4
View File
@@ -252,7 +252,6 @@ protected_start:
mov esi, modeInfoBlock
mov edi, 0x5000 ; Destination
mov ecx, 64 ; 64 * 4 = 256B (size of modeInfoBlock)
rep movsd
; Perform The far jump
@@ -360,9 +359,9 @@ modeInfoBlock:
.directColorModeInfo: db 0
;; Required by VBE 2.0+
.physicalAddressPtr: dd 0
.reserved2: db 0
.reserved3: db 0
.physicalBasePtr: dd 0
.reserved2: dd 0
.reserved3: dw 0
;; Required by VBE 3.0+
.linearBytesPerScanline: dw 0