From 5ad3d16abe666799ddc72d7c36f4d677d4e9893c Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Mon, 3 Jun 2013 10:35:59 +0000 Subject: [PATCH] kernel: enable these ugly 24bpp videomodes again git-svn-id: svn://kolibrios.org@3591 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/boot/bootvesa.inc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/kernel/trunk/boot/bootvesa.inc b/kernel/trunk/boot/bootvesa.inc index bcca3d071f..71c9aeb333 100644 --- a/kernel/trunk/boot/bootvesa.inc +++ b/kernel/trunk/boot/bootvesa.inc @@ -217,7 +217,7 @@ calc_vmodes_table: test [es:mi.ModeAttributes], 10000000b ;LFB ? 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 ; cmp [es:mi.BitsPerPixel],16 @@ -251,7 +251,7 @@ calc_vmodes_table: mov [es:bx+6], cx ; +6 : mode number movzx ax, byte [es:mi.BitsPerPixel] 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 @@ -278,11 +278,11 @@ calc_vmodes_table: ; je .exit ; add bx,word [es:bp+2] ; add bx,word [es:bp+8] -; +; ; cmp ax,bx ; ja .loops ; jmp .again -;.loops: +;.loops: ; push dword [es:si] ; push dword [es:si+4] ; push dword [es:si+8] @@ -493,7 +493,7 @@ end if ;----------------------------------------------------------------------------- ;default_vmode: - + ;----------------------------------------------------------------------------- draw_vmodes_table: _setcursor 9, 2 @@ -515,10 +515,10 @@ draw_vmodes_table: add cx, size_of_step*long_v_table - + cmp ax, cx jb .ok - + sub cx, size_of_step*long_v_table add cx, size_of_step cmp cx, word[end_cursor] @@ -624,7 +624,7 @@ draw_vmodes_table: ;draw cursor mov word[ds:_rs+21], '>>' mov word[ds:_rs+46], '<<' - + .next: