subsys/cfb: move MSB_FIRST down to font capabilities

Font capabilities currently indicate whether font data is packed
horizontally or vertically, and this is used to control frame buffer
updates.  The font bit ordering should likewise be recorded in the font
description, and any reversal to match the display applied when text is
being set in the frame buffer.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
This commit is contained in:
Peter A. Bigot 2019-07-16 11:47:59 -05:00 committed by Ioannis Glaropoulos
commit e3d613e1f4
2 changed files with 19 additions and 25 deletions

View file

@ -44,6 +44,7 @@ enum cfb_display_param {
enum cfb_font_caps {
CFB_FONT_MONO_VPACKED = BIT(0),
CFB_FONT_MONO_HPACKED = BIT(1),
CFB_FONT_MSB_FIRST = BIT(2),
};
struct cfb_font {