From 4fcd05e8523fc8811489bd1e1217adc10ae034e0 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 23 Apr 2022 20:09:57 +0300 Subject: [PATCH 38/38] gtk: Add newline after error message about illegal --resolution See osdn #44120 Signed-off-by: Marko Lindqvist --- client/gui-gtk-3.0/gui_main.c | 2 +- client/gui-gtk-3.22/gui_main.c | 2 +- client/gui-gtk-4.0/gui_main.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/gui-gtk-3.0/gui_main.c b/client/gui-gtk-3.0/gui_main.c index 8cdc3e5414..661b50972c 100644 --- a/client/gui-gtk-3.0/gui_main.c +++ b/client/gui-gtk-3.0/gui_main.c @@ -298,7 +298,7 @@ static void parse_options(int argc, char **argv) gtk_warns_enabled = TRUE; } else if ((option = get_option_malloc("--resolution", argv, &i, argc, FALSE))) { if (!string_to_video_mode(option, &vmode)) { - fc_fprintf(stderr, _("Illegal video mode '%s'"), option); + fc_fprintf(stderr, _("Illegal video mode '%s'\n"), option); exit(EXIT_FAILURE); } free(option); diff --git a/client/gui-gtk-3.22/gui_main.c b/client/gui-gtk-3.22/gui_main.c index 10ecf1e88d..dbd667d135 100644 --- a/client/gui-gtk-3.22/gui_main.c +++ b/client/gui-gtk-3.22/gui_main.c @@ -281,7 +281,7 @@ static void parse_options(int argc, char **argv) exit(EXIT_SUCCESS); } else if ((option = get_option_malloc("--resolution", argv, &i, argc, FALSE))) { if (!string_to_video_mode(option, &vmode)) { - fc_fprintf(stderr, _("Illegal video mode '%s'"), option); + fc_fprintf(stderr, _("Illegal video mode '%s'\n"), option); exit(EXIT_FAILURE); } free(option); diff --git a/client/gui-gtk-4.0/gui_main.c b/client/gui-gtk-4.0/gui_main.c index 2717ae4569..c9c14f3a5b 100644 --- a/client/gui-gtk-4.0/gui_main.c +++ b/client/gui-gtk-4.0/gui_main.c @@ -271,7 +271,7 @@ static void parse_options(int argc, char **argv) } else if ((option = get_option_malloc("--resolution", argv, &i, argc, FALSE))) { if (!string_to_video_mode(option, &vmode)) { - fc_fprintf(stderr, _("Illegal video mode '%s'"), option); + fc_fprintf(stderr, _("Illegal video mode '%s'\n"), option); exit(EXIT_FAILURE); } free(option); -- 2.35.1