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

This commit is contained in:
castano 2013-01-29 20:37:15 +00:00
parent 6216529350
commit 84dc98d4e3

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);
bool const_alpha = true;
const_alpha = true;
for (int y=0; y<height && const_alpha; ++y)
for (int x=0; x<width && const_alpha; ++x)