[PATCH 3/7] commands: fbtest: add flush for single pattern

Ahmad Fatoum
2026-04-13T07:46:09Z

The single-pattern else-branch calls gu_screen_blit() to copy the render
buffer to the framebuffer in-memory image, but never called fb_flush()
to make sure the image makes it to display RAM.

Add fb_flush(sc->info) after gu_screen_blit(), matching the cycling
path above.

Signed-off-by: Ahmad Fatoum <a.fatoum@barebox.org>
---
commands/fbtest.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/commands/fbtest.c b/commands/fbtest.c
index cee72b039371..40c97f72a442 100644
--- a/commands/fbtest.c
+++ b/commands/fbtest.c
@@ -297,6 +297,7 @@ static int do_fbtest(int argc, char *argv[])
} else {
pattern(sc, color);
gu_screen_blit(sc);
+ fb_flush(sc->info);
}
done:
fb_close(sc);
--
2.47.3