Skip to content

Commit b117488

Browse files
committed
example/stb-imagedumper: add -natural-size flag
1 parent 689f842 commit b117488

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

example/stb-imagedumper/stb-imagedumper.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,8 @@ static const char* g_usage =
604604
" -B or -braille-art-dark-mode (use white-on-black Braille art)\n"
605605
" -b or -braille-art-light-mode (use black-on-white Braille art)\n"
606606
" -demo (dump the built-in demonstration images)\n"
607-
" -n use the image's natural size; this overrides -resize=N\n"
607+
" -n or -natural-size (use each image's natural size); this\n"
608+
" overrides -resize=N\n"
608609
" -resize=N (resize to fit in N×N, N≤1024); if neither this\n"
609610
" or -n is given, the default is -resize=64\n";
610611

@@ -648,7 +649,7 @@ parse_flags(int argc, char** argv) {
648649
g_flags.demo = true;
649650
continue;
650651
}
651-
if (!strcmp(arg, "n")) {
652+
if (!strcmp(arg, "n") || !strcmp(arg, "natural-size")) {
652653
g_flags.natural_size = true;
653654
continue;
654655
}

0 commit comments

Comments
 (0)