mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-18 20:14:23 +01:00
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:
1 parent
edef3ad8c3
commit
87dcfbc645
6 files changed
+119
-143
No files matched your search
@@ -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"))
|
||||
|
||||
Reference in new issue
Block a user