diff options
author | Manuel Reimer <manuel.reimer@gmx.de> | 2014-11-04 16:55:45 +0100 |
---|---|---|
committer | Manuel Reimer <manuel.reimer@gmx.de> | 2014-11-04 16:55:45 +0100 |
commit | 2bd5a4057b11f7056cf346a6e4c897c03ed08f9a (patch) | |
tree | 44d5b1d4b0e97bb59bd71af5754815dd0b11d66b /libcore/imageloader.h | |
parent | e519aa7d75958e118112f2e8fb7121cda12e09a7 (diff) | |
download | vdr-plugin-skindesigner-2bd5a4057b11f7056cf346a6e4c897c03ed08f9a.tar.gz vdr-plugin-skindesigner-2bd5a4057b11f7056cf346a6e4c897c03ed08f9a.tar.bz2 |
Some cleanup and minor bugfixes
Diffstat (limited to 'libcore/imageloader.h')
-rw-r--r-- | libcore/imageloader.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libcore/imageloader.h b/libcore/imageloader.h index 9b74f98..0a19dd4 100644 --- a/libcore/imageloader.h +++ b/libcore/imageloader.h @@ -15,7 +15,7 @@ class cImageImporter { public: cImageImporter() {}; virtual ~cImageImporter() {}; - virtual bool LoadImage(const char *path) {}; + virtual bool LoadImage(const char *path) { return false; }; virtual void DrawToCairo(cairo_t *cr) {}; virtual void GetImageSize(int &width, int &height) {}; }; @@ -47,12 +47,12 @@ private: // Image importer for JPG #if BITS_IN_JSAMPLE != 8 - #error libjpeg-turbo has to be compiled with 8-bit samples! + #error libjpeg has to be compiled with 8-bit samples! #endif struct my_error_mgr { - struct jpeg_error_mgr pub; // "public" fields - jmp_buf setjmp_buffer; // for return to caller + struct jpeg_error_mgr pub; // "public" fields + jmp_buf setjmp_buffer; // for return to caller }; METHODDEF(void) @@ -61,7 +61,6 @@ my_error_exit(j_common_ptr cinfo) { my_error_mgr *myerr = (my_error_mgr*) cinfo->err; // Always display the message. - // We could postpone this until after returning, if we chose. (*cinfo->err->output_message) (cinfo); // Return control to the setjmp point @@ -91,7 +90,7 @@ private: class cImageLoader { private: - cImageImporter *importer = NULL; + cImageImporter *importer; public: cImageLoader(); virtual ~cImageLoader(); |