Hello

This is a reasonable simplification for the conventional RGB framebuffer
layouts.

However, since the Multiboot colour field positions and mask sizes are not
validated, the commit message's claim of guaranteeing
 white text may be somewhat stronger than what the implementation actually
guarantees.

This is not a blocking concern for the conventional framebuffer layouts.

No further objections from a static review perspective.

I have not compiled or tested the patch at runtime.

Best regards,
Alperen Erkan

On Tue, Dec 1, 2026 at 9:44 AM Mike Kelly <[email protected]> wrote:

> Choose 0xffffff for white colour rather than parsing multiboot colour
> information bit field sizes etc. It's a little bright but simpler to
> guarantee a white text colour this way.
> ---
>  i386/i386at/fb_disp.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/i386/i386at/fb_disp.c b/i386/i386at/fb_disp.c
> index 0b00e5a5..1b8641b4 100644
> --- a/i386/i386at/fb_disp.c
> +++ b/i386/i386at/fb_disp.c
> @@ -134,7 +134,7 @@ static uint8_t *fb_font_start = vgafont14;
>
>  static const uint32_t fb_cursor_h = 2;
>
> -#define fb_colbyte_white 0xaa
> +#define fb_colbyte_white 0xff
>  #define fb_colbyte_black 0x00
>
>  boolean_t
> --
> 2.47.3
>
>
>

Reply via email to