Skip to content

Commit

Permalink
Draw whole screen when startup
Browse files Browse the repository at this point in the history
  • Loading branch information
a1091150 committed Oct 9, 2024
1 parent fbe9e00 commit 977463a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/fbdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ void video_sync(int fb_fd, unsigned char *mem_start)
static bool twin_fbdev_work(void *closure)
{
twin_screen_t *screen = SCREEN(closure);
static bool run_once = true;
if (run_once) {
run_once = false;
twin_screen_damage(screen, 0, 0, screen->width, screen->height);
}

if (twin_screen_damaged(screen))
twin_screen_update(screen);
Expand Down

0 comments on commit 977463a

Please sign in to comment.