[mapguide-commits] r9461 - trunk/MgDev/Common/Renderers
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Mon Jan 21 06:15:31 PST 2019
Author: jng
Date: 2019-01-21 06:15:31 -0800 (Mon, 21 Jan 2019)
New Revision: 9461
Modified:
trunk/MgDev/Common/Renderers/AGGImageIO.cpp
Log:
#2792: Use png_get_io_ptr() instead of raw accessing the io_ptr of the png_struct
Modified: trunk/MgDev/Common/Renderers/AGGImageIO.cpp
===================================================================
--- trunk/MgDev/Common/Renderers/AGGImageIO.cpp 2019-01-15 12:53:15 UTC (rev 9460)
+++ trunk/MgDev/Common/Renderers/AGGImageIO.cpp 2019-01-21 14:15:31 UTC (rev 9461)
@@ -55,7 +55,7 @@
void png_write_cb(png_structp png, png_bytep data, png_size_t sz)
{
- png_write_context* cxt = (png_write_context*)png->io_ptr;
+ png_write_context* cxt = (png_write_context*)png_get_io_ptr(png);
if (cxt->used + sz > cxt->len)
{
@@ -75,7 +75,7 @@
void png_read_cb(png_structp png, png_bytep data, png_size_t sz)
{
- png_write_context* cxt = (png_write_context*)png->io_ptr;
+ png_write_context* cxt = (png_write_context*)png_get_io_ptr(png);
memcpy(data, cxt->buf + cxt->used, sz);
cxt->used += sz;
}
More information about the mapguide-commits
mailing list