From 9d81a9d0e7a73068b4c348180822f5aa7999d470 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Tue, 20 Sep 2011 20:36:00 +0200 Subject: [PATCH] Flush fp after one complete frame --- host/ledbar.c | 1 + 1 file changed, 1 insertion(+) diff --git a/host/ledbar.c b/host/ledbar.c index 4b2df21..d188fed 100644 --- a/host/ledbar.c +++ b/host/ledbar.c @@ -261,6 +261,7 @@ void drawScreen(SDL_Surface* screen, int t, FILE* fp) if (SDL_MUSTLOCK(screen)) SDL_UnlockSurface(screen); SDL_Flip(screen); + fflush(fp); }