From 865eaca27d5ea0eb7f9ad93ad3d169d192080386 Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 7 Feb 2022 00:36:48 +0100 Subject: Changed all file opening modes to be binary to have consistent newlines --- Stars45/Starshatter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Stars45/Starshatter.cpp') diff --git a/Stars45/Starshatter.cpp b/Stars45/Starshatter.cpp index f9fefbf..3077aca 100644 --- a/Stars45/Starshatter.cpp +++ b/Stars45/Starshatter.cpp @@ -2643,7 +2643,7 @@ Starshatter::SaveVideoConfig(const char* filename) if (!video_settings) return; - FILE* f = fopen(filename, "w"); + FILE* f = fopen(filename, "wb"); if (f) { fprintf(f, "VIDEO\n\n"); fprintf(f, "width: %4d\n", video_settings->fullscreen_mode.width); -- cgit v1.1