2.40: AV in gflAutoCrop using color = NULL
Posted: Sat Jul 09, 2005 2:32 pm
On XP (SP1 still) (and using CBuilder6) Im getting AVs in subsequent calls after using gflAutoCrop like this:
eg. calling gflResize afterwards thows an AV.
When using
such subsequent calls seem to work fine.
Documentation suggest that this is exactly what gflAutoCrop is doing when calling it with color = NULL...
Didn't test with other platforms/compilers however...
Code: Select all
gflAutoCrop(BMP, NULL, NULL, 85);
When using
Code: Select all
GFL_COLOR c;
gflGetColorAt(BMP, 0, 0, &c);
gflAutoCrop(BMP, NULL, &c, 85);
Documentation suggest that this is exactly what gflAutoCrop is doing when calling it with color = NULL...
Didn't test with other platforms/compilers however...