lib: simplefb: name the text top-padding constant

The value 5 appeared bare in two places: simplefb.c (when text wraps
past the bottom of the screen) and debug.c (initial y position for
the printk overlay). Replace both with FB_TEXT_TOP_PADDING defined
once in simplefb.h.
This commit is contained in:
Ivaylo Ivanov
2026-05-27 16:09:06 +00:00
committed by Ивайло Иванов
parent 0887508877
commit ce1a97e2e9
3 changed files with 4 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ static inline void uart_output(const char *prefix, const char *message)
static inline void fb_output(const char *prefix, const char *message, color text_color)
{
#ifdef CONFIG_SIMPLE_FB
const int y_pos = 5;
const int y_pos = FB_TEXT_TOP_PADDING;
const int prefix_width = strlen(prefix) * FONTW * get_font_scale_factor();
__simplefb_raw_print(prefix, 0, y_pos, text_color);