From 8c9b93f065e8258dfb0fb33503811beec50e82b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Kol=C3=A5s?= <pippin@gimp.org> Date: Tue, 5 Sep 2023 02:24:31 +0200 Subject: [PATCH] st3m_gfx: fix initial mode set This makes initial call to st3m_gfx_set_mode(st3m_gfx_default) do something, doesn't matter for the current configured default mode, but is neccesary in 8bpp modes. --- components/st3m/st3m_gfx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/st3m/st3m_gfx.c b/components/st3m/st3m_gfx.c index fd0e131afb..0081cd0717 100644 --- a/components/st3m/st3m_gfx.c +++ b/components/st3m/st3m_gfx.c @@ -45,7 +45,7 @@ static const char *TAG = "st3m-gfx"; #define ST3M_OSD_X 0 #define ST3M_OSD_Y 0 -static st3m_gfx_mode _st3m_gfx_mode = st3m_gfx_default; +static st3m_gfx_mode _st3m_gfx_mode = st3m_gfx_default + 1; EXT_RAM_BSS_ATTR static uint8_t st3m_osd_fb[ST3M_OSD_WIDTH * ST3M_OSD_HEIGHT * 4]; -- GitLab