diff options
Diffstat (limited to 'vendor/libghostty-vt/src/stb/stb.c')
| -rw-r--r-- | vendor/libghostty-vt/src/stb/stb.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/libghostty-vt/src/stb/stb.c b/vendor/libghostty-vt/src/stb/stb.c new file mode 100644 index 00000000..68c4c225 --- /dev/null +++ b/vendor/libghostty-vt/src/stb/stb.c @@ -0,0 +1,13 @@ +// For STBI we only need PNG because the only use case we have right now +// is the Kitty Graphics protocol which only supports PNG as a format +// besides raw RGB/RGBA buffers. +#define STBI_ONLY_PNG + +// We don't want to support super large images. +#define STBI_MAX_DIMENSIONS 131072 + +#define STB_IMAGE_IMPLEMENTATION +#include <stb_image.h> + +#define STB_IMAGE_RESIZE_IMPLEMENTATION +#include <stb_image_resize.h> |
