diff options
Diffstat (limited to 'src/c_fl_jpeg_image.cpp')
-rw-r--r-- | src/c_fl_jpeg_image.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/c_fl_jpeg_image.cpp b/src/c_fl_jpeg_image.cpp new file mode 100644 index 0000000..763c55f --- /dev/null +++ b/src/c_fl_jpeg_image.cpp @@ -0,0 +1,16 @@ + + +#include <FL/Fl_JPEG_Image.H> +#include "c_fl_jpeg_image.h" + + +JPEG_IMAGE new_fl_jpeg_image(const char * f) { + Fl_JPEG_Image *j = new Fl_JPEG_Image(f); + return j; +} + + +void free_fl_jpeg_image(JPEG_IMAGE j) { + delete reinterpret_cast<Fl_JPEG_Image*>(j); +} + |