Fix alpha detection code. Fixes issue 183. Thanks rocatis!

This commit is contained in:
castano 2013-01-29 20:37:15 +00:00
parent 83bdcb541c
commit aa6cd0d2e5

View File

@ -110,7 +110,7 @@ void Targa::fileinfo(const std::string& filename, int& width, int& height, bool&
read_file(fp, pixels, width, height, bpp, origin); read_file(fp, pixels, width, height, bpp, origin);
bool const_alpha = true; const_alpha = true;
for (int y=0; y<height && const_alpha; ++y) for (int y=0; y<height && const_alpha; ++y)
for (int x=0; x<width && const_alpha; ++x) for (int x=0; x<width && const_alpha; ++x)