in vstgui.cpp: bool CBitmap::loadFromResource (const CResourceDescription& resourceDesc)
Code: Select all
png_get_IHDR (png_ptr, info_ptr, (png_uint_32*)&width, (png_uint_32*)&height, &bit_depth, &color_type, 0, 0, 0);
replacing that line for this seems to do the trick:
Code: Select all
png_uint_32 pngW, pngH;
png_get_IHDR (png_ptr, info_ptr, &pngW, &pngH, &bit_depth, &color_type, 0, 0, 0);
width = pngW;
height = pngH;
Why am I using VstGui? Dont' ask
EDIT: This applies to VstGui 3.5, I haven't looked at the 3.0 release.