Commit Graph

1486 Commits

Author SHA1 Message Date
501e29b245 stb_truetype.h docs 2018-01-29 03:36:23 -08:00
986a5eeeb1 fix stb_truetype test file 2018-01-29 03:35:03 -08:00
0b8b3f2876 Merge branch 'stb_truetype_fixes_20171104' of https://github.com/kphillisjr/stb 2018-01-29 03:32:11 -08:00
f22857495b Merge branch 'compile' of https://github.com/alculquicondor/stb 2018-01-29 03:29:59 -08:00
0b81a54354 Merge branch 'cff-type2-fixes' of https://github.com/dougallj/stb 2018-01-29 03:29:01 -08:00
72ef9dcbad fix fall-through case warning, add credit 2018-01-29 03:27:58 -08:00
8cc624142b credits 2018-01-29 03:25:02 -08:00
82f1929de5 Merge branch 'patch-1' of https://github.com/darealshinji/stb 2018-01-29 03:23:53 -08:00
da4b342213 credits 2018-01-29 03:23:45 -08:00
ab4fb5c38a Merge branch '1bit_bmp' of https://github.com/plzombie/stb 2018-01-29 03:22:12 -08:00
b0383facf8 Merge branch 'master' of https://github.com/lieff/stb 2018-01-29 03:20:21 -08:00
41cd8bb527 Merge branch 'patch-1' of https://github.com/twoscomplement/stb 2018-01-29 03:19:34 -08:00
5f1a73fe4e credits, tests 2018-01-29 03:18:40 -08:00
9eb0e72950 Merge branch 'must_make_clang_happy_as_clam' of https://github.com/croepha/stb 2018-01-29 03:17:50 -08:00
e5946524d7 Merge branch 'patch-1' of https://github.com/wojdyr/stb 2018-01-29 03:15:17 -08:00
3d7b4251f9 Merge branch 'png-ext-write' of https://github.com/akx/stb
Conflicts:
	stb_image_write.h
2018-01-29 03:14:31 -08:00
b48101c971 Merge branch 'update_stbi_jpg_dcoumentation' of https://github.com/Benjins/stb 2018-01-29 02:57:46 -08:00
f541fa1710 Merge branch 'valgrind-fix' of https://github.com/rohit-n/stb 2018-01-29 02:56:43 -08:00
35a3bf41e8 Integrate ZLIB changed from Daniel Gibson, fixup credits 2018-01-29 02:55:56 -08:00
9de22e5a70 Merge branch 'stbiw-png-compr' of https://github.com/DanielGibson/stb 2018-01-29 02:53:25 -08:00
39241e4928 update version number 2018-01-29 02:53:14 -08:00
b056850ea9 stb_image_write can flip images vertically 2018-01-29 02:52:49 -08:00
e371bd83f2 Merge branch 'sb_cpluscplus' of https://github.com/ZenToad/stb 2018-01-29 02:47:36 -08:00
593c9b7192 rewrite stbi__shiftsigned to use a different, faster algorithm
to avoid probelm with clang -O2 to outputting buggy code
2018-01-29 02:30:34 -08:00
68f857727c add stb_ucharcmp to stb.h 2018-01-29 02:24:05 -08:00
244d83bc3d fix unchecked length in stb_vorbis that could crash on corrupt/invalid files 2018-01-29 02:23:18 -08:00
6e50ac7860 stb_truetype: Fix undefined function warning
This fixes the error in bug report #516. This should work as intended
since the function definitions line up.
2017-11-04 03:35:02 -05:00
5182622b14 tests: fix test_trutype.c on msvc 2015
This is 3 short fixes for the file test_truetype.c.

1. Fix the Visual Studio Secure CRT Errors by defining
 _CRT_SECURE_NO_WARNINGS

2. Fix signed/unsigned Character conversion warning/error.

3. Fix the Definitions for the Image packer.
This now works as intended generating usable png files.
2017-11-04 03:28:03 -05:00
a981af59c5 Fix tests compilation 2017-10-16 12:30:27 -05:00
1f2b4271e3 stb_truetype: Fix CFF GetGlyphBox optional params
Fixes #404
2017-10-14 11:59:09 +11:00
84fd09ea53 stb_truetype: Fix sign error in CFF push immediate 2017-10-14 11:58:03 +11:00
b6b43df186 Use stbi__mad4sizes_valid() only if STBI_NO_LINEAR or STBI_NO_HDR are defined 2017-09-04 14:01:43 +02:00
350173026a stb_image: support for 1-bit BMP 2017-09-01 02:06:06 +03:00
c06c9fe6bc place const tables to protected .rdata section 2017-08-31 19:33:28 +03:00
c8245bbf22 Remove arg from memset macro
My clang doesn't like the macro defined this way, choking at the callsite on line 195 with "too many arguments provided to function-like macro invocation"

This change matches what is done for STBTT_memset in stb_truetype.h
2017-08-28 23:13:39 -07:00
2545eee3ef Added myself as a contributor for the pull request 2017-08-25 08:24:58 -09:00
f57bc38ff6 Made some changes to make Clang Happy
Someone should double check that that I didn't change
the behavior of any of the code.  I'm not using most (if any)
of the code I touched, just wanted it to compile...
2017-08-25 08:02:35 -09:00
7d80a8b44d avoid GCC7 implicit-fallthrough warning
(GCC recognizes certain strings in comments)
2017-08-11 00:19:18 +01:00
2c7b00ac21 Add force_filter and compression_level parameters to (new) stbi_write_png_to_mem_ex
* `force_filter` being < 0 means the original behavior (i.e. figure out
  the best-performing filter per scanline); any other values 0 <= x <= 4 correspond
  to PNG filters (0 = none, 1 = sub, 2 = up, 3 = average, 4 = Paeth).
* `compression_level` being < 0 equals `compression_level` 8 (the previous value).
  The higher this is, the better the compression should be (though it will use
  more memory).

These new parameters are not (yet) exposed for the higher-level API functions.
2017-08-07 14:52:53 +03:00
923c9c3deb Correct function signature in stbi_write_jpg usage documentation. 2017-07-31 22:22:56 -07:00
747b8d8f71 stb_sprintf.h: Don't compare uninitialized value when using zero.
This prevents a "Conditional jump or move depends on uninitialised
value(s)" error from valgrind when using zero as an argument in line
1045.
2017-07-28 00:01:46 -05:00
9d9f75eb68 update readme 2017-07-24 03:32:32 -07:00
961923b5a3 fix documentation 2017-07-24 03:32:20 -07:00
dd039e8cc5 credits for mingw fixes in #444 2017-07-23 14:13:07 -07:00
3b232a3ff7 Merge branch 'master' of https://github.com/Infatum/stb into dev 2017-07-23 14:10:17 -07:00
555efbedfc Update version numbers 2017-07-23 14:09:39 -07:00
0fbbda56fa stb_image: Account for tRNS chunk in non-paletted images.
So we report channels_in_file correctly.

Fixes #329.
2017-07-23 01:41:12 -07:00
7725f8b9cd stb_leakcheck: Derp, I should free the right thing.
Fixes #307, this time for real.
2017-07-23 01:33:21 -07:00
5a5cf7f9ba stb_leakcheck: Make stb_leakcheck_free actually free.
Fixes issue #307.
2017-07-22 20:44:27 -07:00
5ebeb38edb stb_rect_pack: Remove unused rect_width_compare().
Fixes #416.
2017-07-22 20:25:57 -07:00