Fix for blank PNG images appearing in QuickRes. Apparently, when QuickRes asks for headerOnly, it really means that it wants the entire image.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5992 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -538,9 +538,7 @@ translate_from_png_to_bits(BPositionIO *inSource, BPositionIO *outDestination,
|
|||||||
// to a different value, the above is what
|
// to a different value, the above is what
|
||||||
// will be returned from this function
|
// will be returned from this function
|
||||||
|
|
||||||
bool bheaderonly, bdataonly;
|
bool bheaderonly = false, bdataonly = false;
|
||||||
bheaderonly = settings.SetGetHeaderOnly();
|
|
||||||
bdataonly = settings.SetGetDataOnly();
|
|
||||||
|
|
||||||
// for storing decoded PNG row data
|
// for storing decoded PNG row data
|
||||||
uint8 **prows = NULL, *prow = NULL;
|
uint8 **prows = NULL, *prow = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user