GFLSDK 2.90 gflCBitmap.cpp bug

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, xnview

stolarz
Posts: 15
Joined: Sun Mar 11, 2007 9:23 am

GFLSDK 2.90 gflCBitmap.cpp bug

Post by stolarz »

there is a minor bug in file gflCBitmap.cpp,
method GFLC_BITMAP::create(const GFLC_BITMAP & bitmap),
there is

Code: Select all

return create(bitmap.getType(), bitmap.getBitsPerComponent(), bitmap.getWidth(), bitmap.getHeight(), bitmap.getBitsPerComponent())
,
should be

Code: Select all

return create(bitmap.getType(), bitmap.getWidth(), bitmap.getHeight(), bitmap.getBitsPerComponent(), padding)
where padding should be computed. (create method expects width and height to be 2nd and 3rd parameter)