diff options
| author | Dzmitry Sankouski <dsankouski@gmail.com> | 2023-03-07 13:21:12 +0300 |
|---|---|---|
| committer | Anatolij Gustschin <agust@denx.de> | 2023-03-07 13:26:08 +0100 |
| commit | 02db4ec9027889ee1c0933740c6766a4b6e14b98 (patch) | |
| tree | 9b288cfd7cb83b40720b8fb999f95a76e18ca835 /drivers/video/vidconsole_internal.h | |
| parent | 3154725949f921ac017e0e58fb167fd1b603b025 (diff) | |
video console: add support for fonts wider than 1 byte
Devices with high ppi may benefit from wider fonts.
Current width implementation is limited by 1 byte, i.e. 8 bits.
New version iterates VIDEO_FONT_BYTE_WIDTH times, to process all
width bytes, thus allowing fonts wider than 1 byte.
Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/video/vidconsole_internal.h')
| -rw-r--r-- | drivers/video/vidconsole_internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/vidconsole_internal.h b/drivers/video/vidconsole_internal.h index 0dfcd402c54..c7bc3870352 100644 --- a/drivers/video/vidconsole_internal.h +++ b/drivers/video/vidconsole_internal.h @@ -9,6 +9,7 @@ #include <video_font.h> /* Get font data, width and height */ #define VIDEO_FONT_BYTE_WIDTH ((VIDEO_FONT_WIDTH / 8) + (VIDEO_FONT_WIDTH % 8 > 0)) +#define VIDEO_FONT_CHAR_PIXEL_BYTES (VIDEO_FONT_HEIGHT * VIDEO_FONT_BYTE_WIDTH) #define FLIPPED_DIRECTION 1 #define NORMAL_DIRECTION 0 |
