HomeFreeBSD

vt(4): Put for() loop outside switch() in vt_generate_cons_palette()

Description

vt(4): Put for() loop outside switch() in vt_generate_cons_palette()

This makes it more logical:

  1. It checks the requested color format
  2. It fills the palette accordingly

Also vt_palette_init() is only called when needed (i.e. when the format
is COLOR_FORMAT_RGB).

Details

Provenance
dumbbellAuthored on May 10 2018, 4:41 PM
Parents
rG66fe09d8d9bb: Fix a panic in the IPv6 multicast code.
Branches
Unknown
Tags
Unknown

Event Timeline