ported new mouse changes by Titi to win32 (and removed debug output for image classes)

This commit is contained in:
Mark Vejvoda
2010-03-25 01:06:28 +00:00
parent bf9ebf4912
commit 2b56cfe3b0
5 changed files with 16 additions and 4 deletions

View File

@@ -108,7 +108,7 @@ Pixmap2D* PNGReader::read(ifstream& is, const string& path, Pixmap2D* ret) const
png_read_image(png_ptr, row_pointers);
int fileComponents = info_ptr->rowbytes/info_ptr->width;
int picComponents = (ret->getComponents()==-1)?fileComponents:ret->getComponents();
std::cout << "PNG-Components: Pic: " << picComponents << " old: " << (ret->getComponents()) << " File: " << fileComponents << std::endl;
//std::cout << "PNG-Components: Pic: " << picComponents << " old: " << (ret->getComponents()) << " File: " << fileComponents << std::endl;
//Copy image
ret->init(width,height,picComponents);
uint8* pixels = ret->getPixels();