Skip to content

Commit

Permalink
Show which version of stb image resize is used in --version
Browse files Browse the repository at this point in the history
  • Loading branch information
hzeller committed Jan 16, 2024
1 parent 002c93a commit 196b1b4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/timg.cc
Original file line number Diff line number Diff line change
Expand Up @@ -459,11 +459,16 @@ static int PrintVersion(FILE *stream) {
#endif
#ifdef WITH_TIMG_STB
fprintf(stream,
"STB image loading"
"STB image loading; STB resize v"
#ifdef STB_RESIZE_VERSION2
"2"
#else
"1"
#endif
# ifdef WITH_TIMG_GRPAPHICSMAGICK
// If we have graphics magic, that will take images first,
// so STB will only really be called as fallback.
" fallback"
" (fallback)"
# endif
"\n");
#endif
Expand Down

0 comments on commit 196b1b4

Please sign in to comment.