Commit Graph

1608 Commits

Author SHA1 Message Date
Sean Barrett
9bb4bc1db4 Merge branch 'patch-1' of https://github.com/sherjilozair/stb into working 2019-02-07 07:27:42 -08:00
Sean Barrett
79a7719c37 stb_image: fix d1252e1bb9 for building in C 2019-02-07 07:20:58 -08:00
Sean Barrett
7056eae4ae Merge branch 'issue-609' of https://github.com/dp304/stb into working 2019-02-07 07:19:18 -08:00
Sean Barrett
d1252e1bb9 Merge branch 'master' of https://github.com/ab-cpp/stb into working 2019-02-07 07:17:05 -08:00
Sean Barrett
476c1f89a2 stb_image_write: fix the previous fix (incorrectly labelled as stb_image) 2019-02-07 07:01:23 -08:00
Sean Barrett
aa223d9693 Merge branch 'patch-1' of https://github.com/mastensg/stb into working 2019-02-07 07:00:59 -08:00
Sean Barrett
ba5fc494b4 Merge branch 'master' of https://github.com/WARP-LAB/stb into working 2019-02-07 06:58:18 -08:00
Sean Barrett
e5d4d6fcce stb_image; optimize row computation in PR 2019-02-07 06:58:00 -08:00
Sean Barrett
b2bde485a2 Merge branch 'stbiw-fix-jpeg-flipping' of https://github.com/DanielGibson/stb into working 2019-02-07 06:48:44 -08:00
Sean Barrett
09998eb596 Merge branch 'truetype-comment' of https://github.com/ocornut/stb into working 2019-02-07 06:05:47 -08:00
Sean Barrett
ff1eb8b8d4 Merge branch 'fix_stbi_write_hdr_core' of https://github.com/poppolopoppo/stb into working 2019-02-07 06:03:48 -08:00
Sean Barrett
94f93a86e7 Merge branch 'truetype-warnings' of https://github.com/ocornut/stb into working 2019-02-07 06:02:51 -08:00
Sean Barrett
f82dbd638c windows unicode: don't malloc buffers, add explicit STBI_WINDOWS_UTF8 #define 2019-02-07 05:55:03 -08:00
Sean Barrett
ae773aa438 Merge branch 'unicode-file-support' of https://github.com/jrsmith17/stb into temp 2019-02-07 05:07:14 -08:00
Sean Barrett
841c8b0f55 Merge branch 'rectpack-warnings' of https://github.com/ocornut/stb into working 2019-02-07 05:01:35 -08:00
Sean Barrett
3005bcfe87 Merge branch 'misc-typos' of https://github.com/luzpaz/stb into working 2019-02-07 05:00:12 -08:00
Sean Barrett
cc53512cb9 added integer seed to noise function, use it in multi-octave noises 2019-02-07 04:59:05 -08:00
Sean Barrett
ca980dd2dc Merge branch 'perlin' of https://github.com/Auburns/stb into working 2019-02-07 04:54:14 -08:00
Sean Barrett
a28a6b126b tests: 64-bit fixes, fix typo in image tests 2019-02-07 04:42:32 -08:00
Sean Barrett
27460c23a6 stb_truetype: allow getting font metrics without explicitly opening file 2019-02-07 04:41:26 -08:00
Sean Barrett
9f1ef73e96 stb_sprintf: minor reformatting 2019-02-07 04:40:32 -08:00
Sean Barrett
061422f580 fix non-fastpath BMP pixels with bit 31 set when asserts are on 2019-02-07 04:39:51 -08:00
Sean Barrett
d85e594654 various fixes:
add stb_intcmprev
  add stb_uidict
  fixes to stb__dirtree_scandir
  change rand functions from unsigned long to unsigned int so they're 32-bit on Linux as well
2019-02-07 04:33:18 -08:00
Andrew Beatty
eee50c079d Update to STB conventions 2019-02-07 07:30:42 -05:00
Andrew Beatty
ccc4b3716a fix compiler warnings and const error 2019-01-22 19:31:46 -05:00
Sherjil Ozair
05a8de3b86
Update stb_tilemap_editor.h 2018-05-26 05:37:55 -04:00
Sherjil Ozair
a20ccd4a7d
Update stb_tilemap_editor.h 2018-05-25 22:46:47 -04:00
Dobe Peter
a66dd42d4c stb_image: fix three unused function warnings 2018-05-09 23:24:41 +02:00
Martin Stensgård
ebcae5b130
stb_textedit: remove double initialization
`clang-scan` found this
2018-05-06 12:38:11 +02:00
Sean Barrett
e5254a7fde whoops, makefile for travis was no longer testing most libraries compiling 2018-04-27 04:47:03 -07:00
kroko / Reinis Adovičs
756166e853
fix comma warnings when building with -Wcomma
Happens on standard Xcode Version 9.2 (9C40b) configuration (using Apple LLVM version 9.0.0 (clang-900.0.39.2)). Addresses https://github.com/nothings/stb/issues/515
2018-04-25 15:19:29 +03:00
Daniel Gibson
1ad30e4e77 stb_image_write.h: Fix jpg flipping for non-multiple-of-8 sizes
JPG always encodes 8x8 pixel blocks. If the input image does not have
a width or height that's a multiple of 8, the last column or row is just
used multiple times for the remaining pixels of the block.
The original code first calculated p (the index into the pixel data)
with the "imaginary" row/colum (that might be up to 7 pixels too far
into each direction) and then subtracted the necessary amount of bytes
it if row >= height or col >= width.
That was a bit cryptic (IMHO), and didn't get more readable/obvious when
vertical flipping was added - which introduced a bug, by not taking
stbi__flip_vertically_on_write into account when adjusting p for
row >= height...

The code should be more obvious (and less buggy) now.

This fixes bug #592
2018-04-09 01:24:17 +02:00
Omar Cornut
cc99df4b48 stb_truetype: added comment about stbtt_FindGlyphIndex() return value. 2018-03-08 17:14:31 +01:00
PopPoLoPoPpo
f685ee4e58 Fix overflow in stbi_write_hdr_core()
b056850ea9 left an additional multiplication by x,
leading to overflow.
2018-02-27 00:08:45 +01:00
Omar Cornut
4716080627 stb_truetype: fix unused variable warning when asserts are disabled. 2018-02-23 11:11:05 +01:00
JR
d0ae424061 Re added unicode filename support for stb_image and stb_image_write with whitespace issues fixed. 2018-02-20 21:38:00 -05:00
Omar Cornut
eb3c5db96c stb_reck_pack: Removed unused assigned variables (under #ifdef _DEBUG wrap) 2018-02-13 11:21:43 +01:00
luz.paz
622b3adad3 Misc. comment typos
Found via `codespell -q 3`
2018-02-12 14:54:22 -05:00
Sean Barrett
e6afb9cbae update readme 2018-02-11 11:57:53 -08:00
Sean Barrett
fa2a1d9b3b stb_image version number 2018-02-11 11:57:40 -08:00
Sean Barrett
0707304469 update readme 2018-02-11 11:56:13 -08:00
Sean Barrett
19850aa29a Merge branch 'working' 2018-02-11 11:56:08 -08:00
Sean Barrett
af786f9883 update readme 2018-02-11 11:55:27 -08:00
Sean Barrett
0c11c4f1b6 rework GPOS support for old non-declare-anywhere C 2018-02-11 11:53:29 -08:00
Sean Barrett
6d59a4913f Merge branch 'stb-truetype-gpos-request' of https://github.com/danielmaciel/stb into working 2018-02-11 11:44:27 -08:00
Sean Barrett
cd62aa9714 docs 2018-02-11 11:42:05 -08:00
Sean Barrett
ac66307576 docs 2018-02-11 11:41:20 -08:00
Sean Barrett
b79c8458d3 stb_vorbis: avoid NaN due to uninitialized variable 2018-02-11 11:29:53 -08:00
Sean Barrett
543ad0c112 stb_image_write: tweak handling of STB_IMAGE_WRITE_STATIC 2018-02-11 11:29:32 -08:00
Sean Barrett
aeb2b4b64d tweak handling of STBIWDEF 2018-02-11 11:19:45 -08:00