Browse Source

Changed mode

Stephen Downward 1 year ago
parent
commit
cf9e19d6a2
1 changed files with 7 additions and 7 deletions
  1. 7 7
      boot/video.asm

+ 7 - 7
boot/video.asm

@ -12,9 +12,9 @@
12 12
	;; ^^^^^Don't trust these! They're overwritten at the moment.^^^^^
13 13
14 14
vbe_set_mode:
15
	mov ax, 1024
16
	mov bx, 768
17
	mov cl, 16
15
	mov ax, 1280
16
	mov bx, 600
17
	mov cl, 24
18 18
	mov [width], ax
19 19
	mov [height], bx
20 20
	mov [bpp], cl
@ -75,15 +75,15 @@ find_mode:
75 75
76 76
	mov ax, [width]
77 77
	cmp ax, [VBE_INFO + 0x12] 	;Width
78
	;//jne .next_mode
78
	jg .next_mode
79 79
 
80 80
	mov ax, [height]
81 81
	cmp ax, [VBE_INFO + 0x14] 	;Height
82
	;//jne .next_mode
83
 
82
	jg .next_mode
83
	
84 84
	mov al, [bpp]
85 85
	cmp al, [VBE_INFO + 0x19]	;BPP
86
	jne .next_mode
86
	jg .next_mode
87 87
 
88 88
	; If we make it here, we've found the correct mode!
89 89