kernel: enable these ugly 24bpp videomodes again

git-svn-id: svn://kolibrios.org@3591 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge) 2013-06-03 10:35:59 +00:00
parent 2735f0be85
commit 5ad3d16abe

View File

@ -217,7 +217,7 @@ calc_vmodes_table:
test [es:mi.ModeAttributes], 10000000b ;LFB ? test [es:mi.ModeAttributes], 10000000b ;LFB ?
jz @f jz @f
cmp [es:mi.BitsPerPixel], 32 ;It show only videomodes to have support 24 and 32 bpp cmp [es:mi.BitsPerPixel], 24 ;It show only videomodes to have support 24 and 32 bpp
jb @f jb @f
; cmp [es:mi.BitsPerPixel],16 ; cmp [es:mi.BitsPerPixel],16
@ -251,7 +251,7 @@ calc_vmodes_table:
mov [es:bx+6], cx ; +6 : mode number mov [es:bx+6], cx ; +6 : mode number
movzx ax, byte [es:mi.BitsPerPixel] movzx ax, byte [es:mi.BitsPerPixel]
mov word [es:bx+8], ax ; +8 : bits per pixel mov word [es:bx+8], ax ; +8 : bits per pixel
add bx, size_of_step ; size of record add bx, size_of_step ; size of record
@@: @@:
add si, 2 add si, 2
@ -278,11 +278,11 @@ calc_vmodes_table:
; je .exit ; je .exit
; add bx,word [es:bp+2] ; add bx,word [es:bp+2]
; add bx,word [es:bp+8] ; add bx,word [es:bp+8]
; ;
; cmp ax,bx ; cmp ax,bx
; ja .loops ; ja .loops
; jmp .again ; jmp .again
;.loops: ;.loops:
; push dword [es:si] ; push dword [es:si]
; push dword [es:si+4] ; push dword [es:si+4]
; push dword [es:si+8] ; push dword [es:si+8]
@ -493,7 +493,7 @@ end if
;----------------------------------------------------------------------------- ;-----------------------------------------------------------------------------
;default_vmode: ;default_vmode:
;----------------------------------------------------------------------------- ;-----------------------------------------------------------------------------
draw_vmodes_table: draw_vmodes_table:
_setcursor 9, 2 _setcursor 9, 2
@ -515,10 +515,10 @@ draw_vmodes_table:
add cx, size_of_step*long_v_table add cx, size_of_step*long_v_table
cmp ax, cx cmp ax, cx
jb .ok jb .ok
sub cx, size_of_step*long_v_table sub cx, size_of_step*long_v_table
add cx, size_of_step add cx, size_of_step
cmp cx, word[end_cursor] cmp cx, word[end_cursor]
@ -624,7 +624,7 @@ draw_vmodes_table:
;draw cursor ;draw cursor
mov word[ds:_rs+21], '>>' mov word[ds:_rs+21], '>>'
mov word[ds:_rs+46], '<<' mov word[ds:_rs+46], '<<'
.next: .next: