Prefer 32bpp over 24bpp over 16bpp as default video mode.

git-svn-id: svn://kolibrios.org@5169 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2014-11-04 17:29:00 +00:00
parent 733343d310
commit 86a9d29ceb

View File

@ -396,7 +396,8 @@ end if
; mov word [home_cursor],ax ; mov word [home_cursor],ax
; mov word [preboot_graph],ax ; mov word [preboot_graph],ax
;SET default video of mode first probe will fined a move of work 1024x768@32 ;SET default video of mode first probe will fined a move of work 1024x768@32
mov cx, 32
.find_mode:
mov ax, 1024 mov ax, 1024
mov bx, 768 mov bx, 768
mov si, modes_table mov si, modes_table
@ -415,6 +416,8 @@ end if
call .loops call .loops
test ax, ax test ax, ax
jz .ok_found_mode jz .ok_found_mode
sub cx, 8
jnz .find_mode
mov si, modes_table mov si, modes_table
if ~ defined extended_primary_loader if ~ defined extended_primary_loader
@ -478,20 +481,15 @@ end if
jne .next jne .next
cmp bx, word [es:si+2] cmp bx, word [es:si+2]
jne .next jne .next
cmp word [es:si+8], 32 cmp cx, word [es:si+8]
je .ok jne .next
cmp word [es:si+8], 24 xor ax, ax
je .ok ret
cmp word [es:si+8], 16
je .ok
.next: .next:
add si, size_of_step add si, size_of_step
cmp word [es:si], -1 cmp word [es:si], -1
je .exit je .exit
jmp .loops jmp .loops
.ok:
xor ax, ax
ret
.exit: .exit:
or ax, -1 or ax, -1
ret ret