Project

General

Profile

Feature #1071 » 0060-gtk4-x-Always-build-zoom-commandline-option-in.patch

main - Marko Lindqvist, 11/08/2024 10:38 PM

View differences:

client/gui-gtk-4.0/gui_main.c
fc_fprintf(stderr,
_("-r, --resolution WIDTHxHEIGHT\tAssume given resolution "
"screen\n"));
#ifdef EXP_ZOOM_LEVELS
fc_fprintf(stderr,
/* TRANS: Keep word 'default' untranslated */
_("-z, --zoom LEVEL\tSet zoom level; use value 'default' "
"to reset\n\n"));
#else
fc_fprintf(stderr, "\n");
#endif /* EXP_ZOOM_LEVELS */
/* TRANS: No full stop after the URL, could cause confusion. */
fc_fprintf(stderr, _("Report bugs at %s\n"), BUG_URL);
......
print_usage();
return FALSE;
#ifdef EXP_ZOOM_LEVELS
} else if ((option = get_option_malloc("--zoom", argv, &i, argc, FALSE))) {
char *endptr;
......
gui_options.zoom_set = FALSE;
}
free(option);
#endif /* EXP_ZOOM_LEVELS */
} 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'\n"), option);
client/gui-gtk-5.0/gui_main.c
fc_fprintf(stderr,
_("-r, --resolution WIDTHxHEIGHT\tAssume given resolution "
"screen\n"));
#ifdef EXP_ZOOM_LEVELS
fc_fprintf(stderr,
/* TRANS: Keep word 'default' untranslated */
_("-z, --zoom LEVEL\tSet zoom level; use value 'default' "
"to reset\n\n"));
#else
fc_fprintf(stderr, "\n");
#endif /* EXP_ZOOM_LEVELS */
/* TRANS: No full stop after the URL, could cause confusion. */
fc_fprintf(stderr, _("Report bugs at %s\n"), BUG_URL);
......
print_usage();
return FALSE;
#ifdef EXP_ZOOM_LEVELS
} else if ((option = get_option_malloc("--zoom", argv, &i, argc, FALSE))) {
char *endptr;
......
gui_options.zoom_set = FALSE;
}
free(option);
#endif /* EXP_ZOOM_LEVELS */
} 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'\n"), option);
(1-1/2)