diff options
Diffstat (limited to 'libcore/imageloader.c')
| -rw-r--r-- | libcore/imageloader.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libcore/imageloader.c b/libcore/imageloader.c index 703dfeb..9b2a5b7 100644 --- a/libcore/imageloader.c +++ b/libcore/imageloader.c @@ -139,7 +139,6 @@ void cImageImporterPNG::GetImageSize(int &width, int &height) { // cImageImporterSVG::cImageImporterSVG() { - g_type_init(); handle = NULL; } @@ -185,6 +184,12 @@ void cImageImporterSVG::GetImageSize(int &width, int &height) { } } +void cImageImporterSVG::InitLibRSVG() { + #if !GLIB_CHECK_VERSION(2, 35, 0) + g_type_init(); + #endif +} + // // Image importer for JPG // |
