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 authored and Ивайло Иванов committed 2026-05-28 10:12:51 +03:00
1 parent 0887508877
commit ce1a97e2e9
3 files changed
+4 -2

No files matched your search

+2
View File
@@ -17,6 +17,8 @@ typedef struct _color {
unsigned char a;
} color;
#define FB_TEXT_TOP_PADDING 5
typedef enum {
FB_FORMAT_RGB888,
FB_FORMAT_ARGB8888,