aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 19ed0f9..d31f14f 100644
--- a/main.cpp
+++ b/main.cpp
@@ -179,6 +179,12 @@ main(int argc, char **argv)
port, sdl_flags, show_cursor,
width, height, bpp, framerate);
+#ifdef __WIN32__
+ /* disable SDL's stdio redirect */
+ freopen("CON", "w", stdout);
+ freopen("CON", "w", stderr);
+#endif
+
if (SDL_Init(SDL_INIT_VIDEO)) {
SDL_ERROR("SDL_Init");
return EXIT_FAILURE;