Page 1 of 1

GFLSDK 2.90 gflCBitmap.cpp bug

Posted: Thu Dec 25, 2008 8:49 pm
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)