mirror of https://github.com/nothings/stb.git
Merge a1548947cc
into ae721c50ea
This commit is contained in:
commit
5a688220dd
|
@ -141,6 +141,7 @@ CREDITS:
|
|||
github:ignotion
|
||||
Adam Schackart
|
||||
Andrew Kensler
|
||||
Elie Michel
|
||||
|
||||
LICENSE
|
||||
|
||||
|
@ -770,10 +771,10 @@ static int stbi_write_hdr_core(stbi__write_context *s, int x, int y, int comp, f
|
|||
char header[] = "#?RADIANCE\n# Written by stb_image_write.h\nFORMAT=32-bit_rle_rgbe\n";
|
||||
s->func(s->context, header, sizeof(header)-1);
|
||||
|
||||
#ifdef __STDC_LIB_EXT1__
|
||||
#if defined(_WIN32) && defined(__STDC_WANT_SECURE_LIB__)
|
||||
len = sprintf_s(buffer, sizeof(buffer), "EXPOSURE= 1.0000000000000\n\n-Y %d +X %d\n", y, x);
|
||||
#else
|
||||
len = sprintf(buffer, "EXPOSURE= 1.0000000000000\n\n-Y %d +X %d\n", y, x);
|
||||
len = snprintf(buffer, sizeof(buffer), "EXPOSURE= 1.0000000000000\n\n-Y %d +X %d\n", y, x);
|
||||
#endif
|
||||
s->func(s->context, buffer, len);
|
||||
|
||||
|
|
Loading…
Reference in New Issue