Skip to content
Myr

Merge branch 'fix-vs2015-warnings' of https://github.com/Reedbeta/stb into working

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sean Barrett · committed by Sean Barrett · parents d5b8af1, 3657418 · Browse files · 1 file+4 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−2 removed

  • other:+4 added−2 removed

1 file+4 added−2 removed

modified:stb_image.h+4 added-2 removed
5224 unmodified lines
5225 } else {5226 // Read the data.5227 if (bitdepth == 16) {5228 for (i = 0; i < pixelCount; i++, p += 4)5229 *p = stbi__get16be(s) >> 8;5229 *p = (stbi_uc) (stbi__get16be(s) >> 8);5230 } else {5231 for (i = 0; i < pixelCount; i++, p += 4)5232 *p = stbi__get8(s);5233 }
533 unmodified lines
5767 o = stbi__process_gif_raster(s, g);5768 if (o == NULL) return NULL;57695770 if (prev_trans != -1)5771 g->pal[g->transparent][3] = prev_trans;5771 g->pal[g->transparent][3] = (stbi_uc) prev_trans;57725773 return o;5774 }5775
22 unmodified lines
5798 default:5799 return stbi__errpuc("unknown code", "Corrupt GIF");5800 }5801 }58025803 STBI_NOTUSED(req_comp);5804}58055806static stbi_uc *stbi__gif_load(stbi__context *s, int *x, int *y, int *comp, int req_comp)5807{
702 unmodified lines