forked from KolibriOS/kolibrios
It show only 24 and 32 bpp in blue screen
git-svn-id: svn://kolibrios.org@947 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
a06f8cc84c
commit
0df8accb94
@ -215,17 +215,17 @@ calc_vmodes_table:
|
|||||||
test [es:mi.ModeAttributes],10000000b ;LFB ?
|
test [es:mi.ModeAttributes],10000000b ;LFB ?
|
||||||
jz @f
|
jz @f
|
||||||
|
|
||||||
; cmp [es:mi.BitsPerPixel], 24
|
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
|
||||||
jne .l0
|
; jne .l0
|
||||||
cmp [es:mi.GreenMaskSize],5
|
; cmp [es:mi.GreenMaskSize],5
|
||||||
jne .l0
|
; jne .l0
|
||||||
mov [es:mi.BitsPerPixel],15
|
; mov [es:mi.BitsPerPixel],15
|
||||||
|
|
||||||
|
|
||||||
.l0:
|
.l0:
|
||||||
cmp [es:mi.XRes],640
|
cmp [es:mi.XRes],640
|
||||||
jb @f
|
jb @f
|
||||||
cmp [es:mi.YRes],480
|
cmp [es:mi.YRes],480
|
||||||
@ -244,7 +244,7 @@ calc_vmodes_table:
|
|||||||
jb .lp1
|
jb .lp1
|
||||||
|
|
||||||
or cx,0x4000 ; use LFB
|
or cx,0x4000 ; use LFB
|
||||||
.lp1: mov [es:bx+6],cx ; +6 : mode number
|
.lp1: 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
|
||||||
|
Loading…
Reference in New Issue
Block a user