Bugs in gflC C++ Wrapper (gflCBitmap.cpp)
Posted: Wed Feb 15, 2006 8:45 pm
Code looks like this:
While it must be:
as of:
Because of this bug neither the copy c'tor, operator= nor create(bmp) works correctly 
Furthermore there are several instances of GetGFLColor (which must be getGFLColor).
Code: Select all
GFL_ERROR GFLC_BITMAP::create(const GFLC_BITMAP & bitmap)
{
return create(bitmap.getType(), bitmap.getBitsPerComponent(), bitmap.getWidth(), bitmap.getHeight());
}
Code: Select all
GFL_ERROR GFLC_BITMAP::create(const GFLC_BITMAP & bitmap)
{
return create(bitmap.getType(), bitmap.getWidth(), bitmap.getHeight(), bitmap.getBitsPerComponent());
}
Code: Select all
GFL_ERROR create(GFL_BITMAP_TYPE type, GFL_INT32 width, GFL_INT32 height, GFL_UINT16 bits_per_component=8, GFL_INT32 padding=1, const GFL_COLOR *color=NULL);

Furthermore there are several instances of GetGFLColor (which must be getGFLColor).