debug: Report if double-buffered fb is enabled

(Only applies to hosted targets if FB_DOUBLEBUF is enabled)

Change-Id: I6ef3ead5f6ef12b26e3dd0d07ac582cff98deaed
This commit is contained in:
Solomon Peachy 2025-05-08 12:35:03 -04:00
parent 89ea2eafb5
commit c63b82a895
3 changed files with 9 additions and 1 deletions

View file

@ -657,4 +657,8 @@ extern void lcd_nine_segment_bmp(const struct bitmap* bm, int x, int y,
extern int lcd_get_dpi(void);
#endif /* LCD_DPI */
#ifdef FB_DOUBLEBUF
extern int doublebuf;
#endif
#endif /* __LCD_H__ */

View file

@ -76,6 +76,10 @@ bool dbg_hw_info(void)
lcd_putsf(0, line++, "lo: %d", lineout_inserted());
#endif
#ifdef FB_DOUBLEBUF
lcd_putsf(0, line++, "fbdb: %d", doublebuf);
#endif
#ifdef HAVE_BUTTON_DATA
uint32_t bdata;
btn = button_read_device(&bdata);

View file

@ -43,7 +43,7 @@ fb_data *framebuffer = NULL; /* global variable, see lcd-target.h */
#ifdef FB_DOUBLEBUF
static int fb_plane;
static int doublebuf;
int doublebuf;
#else
#define fb_plane 0
#endif