gsdx-png: Use libpng directly instead of via png++

v2: Increase compression to maximum
v3: Add zlib to GSdx build dependencies
v4: Reduce memory usage
This commit is contained in:
Jonathan Li committed 2016-03-02 22:48:54 +00:00
1 parent edef3ad8c3
commit 87dcfbc645
6 files changed
+119 -143

No files matched your search

+1 -2
View File
@@ -130,8 +130,7 @@ bool GSTextureSW::Save(const string& fn, bool dds)
#else
GSPng::Format fmt = GSPng::RGB_PNG;
#endif
GSPng::Save(fmt, fn, (char*)m_data, m_size.x, m_size.y, m_pitch);
return true;
return GSPng::Save(fmt, fn, static_cast<uint8*>(m_data), m_size.x, m_size.y, m_pitch);
#else
if(FILE* fp = fopen(fn.c_str(), "wb"))