Commit Graph

1443 Commits

Author SHA1 Message Date
c41629f262 Merge branch 'master' of https://github.com/blackpawn/stb into stb_h_fix 2016-01-22 04:58:41 -08:00
8c5a442960 Merge branch 'readdir_raw' of https://github.com/mikesart/stb into stb_h_fix 2016-01-22 04:57:38 -08:00
e27cb7fcbf Merge branch 'master' of https://github.com/mikesart/stb into stb_h_fix 2016-01-22 04:57:25 -08:00
8b144eb536 stb_easy_font: support '\n' in _width(), add _height() [untested] 2016-01-22 04:27:47 -08:00
30015ef464 attempt to fix unused var warnings in stb_image 2.09 2016-01-22 04:06:28 -08:00
8f9be5adfc Update other_libs.md 2016-01-21 06:35:48 -08:00
a5bbc93087 Warning C4005 fix 2016-01-18 22:41:17 -08:00
bc1b1f6cc9 Warning C4703 fix 2016-01-18 19:38:07 -08:00
3364990ac3 Update other_libs.md 2016-01-18 13:24:17 -08:00
4ef7d07a44 ttf: Correct direct use of fabs()
Add a macro to allow fabs() to be provided by the user, as with the other
maths functions. Update the implementation code to use it instead of fasb().

Signed-off-by: Simon Glass <sjg@chromium.org>
2016-01-16 11:35:26 -07:00
48ec72ac12 Update stbtt_fontinfo.userdata field on paths where user never has access to it. 2016-01-16 10:26:36 -08:00
ad9a570e27 stb_truetype version history; update README 2016-01-16 10:20:54 -08:00
667d840860 Merge branch 'working' 2016-01-16 10:17:15 -08:00
f1d2002a1d update contributor list 2016-01-16 10:16:23 -08:00
58484eb73d Merge branch 'implicit_cast_fix' of https://github.com/filipwasil/stb into working 2016-01-16 10:11:54 -08:00
9f081b62a4 Merge branch 'stbiw_documentation_typo' of https://github.com/karjonas/stb into working 2016-01-16 10:11:00 -08:00
099cd5a279 Merge branch 'msvc_runtime_cast_fixes' of https://github.com/karjonas/stb into working 2016-01-16 10:10:07 -08:00
8521c38956 tweak previous crc commit 2016-01-16 10:09:35 -08:00
89aaa77b5f Merge branch 'image_write_parallel' of https://github.com/karjonas/stb into working 2016-01-16 10:04:45 -08:00
20aca08f86 Merge branch 'master' of https://github.com/zerhacken/stb into working 2016-01-16 10:02:56 -08:00
b9216ddb36 Merge branch 'master' of https://github.com/serge-rgb/stb into working
Conflicts:
	stb_image_write.h
2016-01-16 10:02:30 -08:00
472c4c82a4 update version history 2016-01-16 10:00:19 -08:00
ac748cba9b update contributor list, version history, version number 2016-01-16 09:57:04 -08:00
79f29bafff fix previous stb_vorbis check-in that didn't actually compile;
make stb_vorbis_alloc* parameter in APIs be const
2016-01-16 09:48:01 -08:00
82ca643ef3 change previous explicitly-sized realloc support to be new API and unbreak old API 2016-01-16 09:47:22 -08:00
853fda6132 Merge branch 'alt_realloc' of https://github.com/romigrou/stb into working 2016-01-16 09:38:13 -08:00
c8e50127c5 contributor list 2016-01-16 09:37:34 -08:00
32d5e7ca7f Merge branch '16bit-tga' of https://github.com/DanielGibson/stb into working 2016-01-16 08:15:58 -08:00
9cb29b6b39 update and reorganize contributor list 2016-01-16 08:13:55 -08:00
5746aa023a Merge branch 'stbi_hdr_info_overread' of https://github.com/baldurk/stb into working 2016-01-16 08:05:51 -08:00
e30b75af8b update contributor list 2016-01-16 08:05:40 -08:00
c7e24f4c4c Merge branch 'master' of https://github.com/svdijk/stb into working 2016-01-16 08:03:22 -08:00
1964d53d70 update version number and version history with everything committed to date 2016-01-16 08:01:42 -08:00
418d21f2e2 bump the version number and add version hisoty 2016-01-16 07:52:15 -08:00
79641c7ad4 Merge branch 'master' of https://github.com/nothings/stb 2016-01-16 07:43:09 -08:00
3560e553e8 stb_vorbis version history and contributor info 2016-01-16 07:42:24 -08:00
e9e5dd94b8 Merge branch 'vorbis-pedantic' of https://github.com/rohit-n/stb into working 2016-01-16 07:35:10 -08:00
95e954c822 const correctness for pushdata API;
minor tweak to get_samples_interleaved documentation
2016-01-16 07:26:16 -08:00
0860860af6 avoid __forceinline in mingw since their definition for C is broken;
dummy definitions for malloc et al (note you have to modify source to make this work though anyway);
tweak credits change;
2016-01-16 07:19:27 -08:00
cd750ab2c3 Merge pull request #216 from corporateshark/master
Added LUrlParser
2016-01-14 15:19:35 -08:00
7e741ffc1e Added the old size as argument to the STBI_REALLOC() and STBIW_REALLOC() macros 2016-01-14 10:34:30 +01:00
1ec8a8c4a4 Update other_libs.md 2016-01-12 09:26:47 -08:00
5b6d11e9e8 Update other_libs.md 2016-01-12 09:26:10 -08:00
fc8b649466 Update other_libs.md 2016-01-03 13:38:34 -08:00
f5e3afa5c6 Added LUrlParser 2016-01-03 02:26:04 +03:00
ac8adfdcb3 Update other_libs.md 2015-12-16 08:22:58 -08:00
bb39bd44bb Update other_libs.md 2015-12-16 03:14:03 -08:00
9dc860b7cc stb_textedit: better support for keying while holding mouse drag button 2015-12-11 22:55:42 +00:00
87a0396922 stb_image.h: 16 bit TGAs don't really have an alpha channel
I claimed that if the most significant bit of a 16bit pixel is set,
it should be opaque (as is suggested by some sources on the internet),
but implemented the opposite.
If implemented "correctly", lots of 16bit TGAs become invisible.. so I
guess 16bit TGAs aren't really supposed to have an alpha-channel, or at
least most 16bit TGAs (despite having set an "alpha-bit" in the "image
descriptor byte") in the wild don't seem to work like that.

So just assume 16bit non-greyscale TGAs are always STBI_rgb without
an alpha channel.
2015-12-06 05:47:47 +01:00
d235049322 stb_image.h: Fix TGA colormap support
* Calculate correct stb format (incl. proper 16bit support) also when
  using a colormap (palette)
* Create colormap with tga_comp, to correctly support 16bit RGB
  (instead of using tga_palette_bits/8 and just copying the data)
* For TGAs with colormap, the TGA bits per pixel field specifies the
  size of an index to the colormap - the "real" color depth
  of the image is saved in the color map specification's bits per pixel
  field. I think only 8 and 16bit indices make sense (16 should be
  supported, otherwise the colormap length could be u8 instead of u16),
  so I added support for both.
* Helper functions stbi__tga_get_comp() to calculate stb pixelformat and
  stbi__tga_read_rgb16() to read one 16bit pixel and convert it to
  24/32bit RGB(A) - for less duplicate code
2015-12-06 04:33:37 +01:00