mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2026-08-15 05:18:32 +00:00
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:
committed by
Ивайло Иванов
parent
0887508877
commit
ce1a97e2e9
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user