diff options
author | Matthias Clasen <maclas@gmx.de> | 2003-05-21 20:20:07 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2003-05-21 20:20:07 +0000 |
commit | b5adee991a31f5119aad62dc0733373a16afb529 (patch) | |
tree | 51c6c747841a5d8ce30d8fc92efbe4c6ac9a88fe /gdk-pixbuf/gdk-pixbuf-io.c | |
parent | ec288c70173ef83df937ed13f5b78e4b8163df12 (diff) | |
download | gdk-pixbuf-b5adee991a31f5119aad62dc0733373a16afb529.tar.gz |
A loader for PCX files. (#113035, Josh Beam)
2003-05-21 Matthias Clasen <maclas@gmx.de>
* pixbufloader_pcx.def:
* io-pcx.c: A loader for PCX files. (#113035, Josh Beam)
* gdk-pixbuf-io.c:
* Makefile.am: Add PCX loader.
Diffstat (limited to 'gdk-pixbuf/gdk-pixbuf-io.c')
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-io.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-io.c b/gdk-pixbuf/gdk-pixbuf-io.c index 218c44c29..f3f6f4b32 100644 --- a/gdk-pixbuf/gdk-pixbuf-io.c +++ b/gdk-pixbuf/gdk-pixbuf-io.c @@ -413,6 +413,7 @@ module (tiff); module (xpm); module (xbm); module (tga); +module (pcx); gboolean _gdk_pixbuf_load_module (GdkPixbufModule *image_module, @@ -518,6 +519,13 @@ _gdk_pixbuf_load_module (GdkPixbufModule *image_module, } #endif +#ifdef INCLUDE_pcx + else if (strcmp (image_module->module_name, "pcx") == 0) { + fill_info = MODULE_ENTRY (pcx, fill_info); + fill_vtable = MODULE_ENTRY (pcx, fill_vtable); + } +#endif + if (fill_vtable) { (* fill_vtable) (image_module); image_module->info = g_new0 (GdkPixbufFormat, 1); @@ -541,7 +549,7 @@ gdk_pixbuf_io_init () gchar *included_formats[] = { "ani", "png", "bmp", "wbmp", "gif", "ico", "jpeg", "pnm", "ras", "tiff", - "xpm", "xbm", "tga", + "xpm", "xbm", "tga", "pcx", NULL }; gchar **name; |