diff options
author | Bastian Stender <bst@pengutronix.de> | 2017-02-28 15:31:26 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-02-28 15:52:53 +0100 |
commit | b9cf45f00c6e120f58f02f45ef949a7be54da999 (patch) | |
tree | 6fdcf7a7e162764a341e6f73c4b99c123b5c0a80 /commands | |
parent | b4f55fcf355a4d0ac456445a5f42f259f2812b57 (diff) | |
download | barebox-b9cf45f00c6e120f58f02f45ef949a7be54da999.tar.gz barebox-b9cf45f00c6e120f58f02f45ef949a7be54da999.tar.xz |
fb: introduce flush for virtual framebuffer
Some drivers need an explicit sync method to flush the virtual
framebuffer to the display. It is called fb_flush().
fb_flush() gets called on fbc_putc, on fb_close and in the pattern cycle
in the fbtest command.
Signed-off-by: Bastian Stender <bst@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r-- | commands/fbtest.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/fbtest.c b/commands/fbtest.c index bd0e140d07..ca6ec21991 100644 --- a/commands/fbtest.c +++ b/commands/fbtest.c @@ -169,6 +169,7 @@ static int do_fbtest(int argc, char *argv[]) pattern = patterns[i++ % ARRAY_SIZE(patterns)].func; pattern(sc, color); gu_screen_blit(sc); + fb_flush(sc->info); start = get_time_ns(); while (!is_timeout(start, 2 * SECOND)) |