summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorTuomas Virtanen <katajakasa@gmail.com>2016-01-11 02:52:28 +0200
committerTuomas Virtanen <katajakasa@gmail.com>2016-01-11 02:52:28 +0200
commite04f73fc74a88a853c9a13768d6201a86683bedf (patch)
treeb4948a87726ff765fdac5d64bb0cd2d844f8d1db /examples
parent21d80c7e76e318a98ac8cf5c117c38c29a706b04 (diff)
Add stderr flush to the example
Diffstat (limited to 'examples')
-rw-r--r--examples/example_video.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/example_video.c b/examples/example_video.c
index fee45b5..99f1b13 100644
--- a/examples/example_video.c
+++ b/examples/example_video.c
@@ -173,6 +173,8 @@ int main(int argc, char *argv[]) {
return 1;
}
+ fflush(stderr);
+
// Set logical size for the renderer. This way when we scale, we keep aspect ratio.
SDL_RenderSetLogicalSize(renderer, pinfo.video.width, pinfo.video.height);