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: