fix some typos, add image test program
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 · parent a31d50a · Browse files · 4 files·+16 added−4 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
4 files+16 added−4 removed
- tests:+14 added−2 removed
- other:+2 added−2 removed
Provenance
- Commit
fc0bfd1- Tree
979ba00- Author
Sean Barrett <sean2@nothings.org>- Committer
Sean Barrett <sean2@nothings.org>- Parent
a31d50a
4 files changed+16 added−4 removed
modified:tests/stb_cpp.dsp+1 added-1 removed
63 unmodified lines64 # PROP Intermediate_Dir "Debug"65 # PROP Ignore_Export_Lib 066 # PROP Target_Dir ""67 # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c68-# ADD CPP /nologo /MTd /W3 /GX /Zd /Od /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c68+# ADD CPP /nologo /MTd /W3 /GX /Zd /Od /I "..\.." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c69 # ADD BASE RSC /l 0x409 /d "_DEBUG"70 # ADD RSC /l 0x409 /d "_DEBUG"71 BSC32=bscmake.exe72 # ADD BASE BSC32 /nologo29 unmodified linesmodified:tests/stb.dsp+1 added-1 removed
64 unmodified lines65 # PROP Intermediate_Dir "Debug"66 # PROP Ignore_Export_Lib 067 # PROP Target_Dir ""68 # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c69-# ADD CPP /nologo /MTd /W3 /GX /Zd /Od /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "MAIN_TEST" /FR /FD /GZ /c69+# ADD CPP /nologo /MTd /W3 /GX /Zd /Od /I "..\.." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "MAIN_TEST" /FR /FD /GZ /c70 # SUBTRACT CPP /YX71 # ADD BASE RSC /l 0x409 /d "_DEBUG"72 # ADD RSC /l 0x409 /d "_DEBUG"73 BSC32=bscmake.exe35 unmodified linesmodified:tests/stb.dsw+12 added
1 unmodified line2 # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!3 4 ###############################################################################5 6+Project: "image_test"=.\image_test\image_test.dsp - Package Owner=<4>7+8+Package=<5>9+{{{10+}}}11+12+Package=<4>13+{{{14+}}}15+16+###############################################################################17+18 Project: "stb"=.\stb.dsp - Package Owner=<4>19 20 Package=<5>21 {{{35 unmodified linesmodified:stb_image.c+2 added-2 removed
3022 unmodified lines3023 mg = 0xffu << 8;3024 mb = 0xffu << 0;3025 ma = 0xffu << 24;3026 fake_a = 1; // @TODO: check for cases like alpha value is all 0 and switch it to 2553027- STBI_UNUSED(fake_a);3027+ STBI_NOTUSED(fake_a);3028 } else {3029 mr = 31u << 10;3030 mg = 31u << 5;3031 mb = 31u << 0;100 unmodified lines3132 if (target == 4) out[z++] = (stbi__uint8) a;3133 }3134 } else {3135 for (i=0; i < (int) s->img_x; ++i) {3136- stbi__uint32 v = (stbi_uint32) (bpp == 16 ? get16le(s) : get32le(s));3136+ stbi__uint32 v = (stbi__uint32) (bpp == 16 ? get16le(s) : get32le(s));3137 int a;3138 out[z++] = (stbi__uint8) shiftsigned(v & mr, rshift, rcount);3139 out[z++] = (stbi__uint8) shiftsigned(v & mg, gshift, gcount);3140 out[z++] = (stbi__uint8) shiftsigned(v & mb, bshift, bcount);1572 unmodified lines