aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index 3a669c6..54b5e22 100644
--- a/src/main.c
+++ b/src/main.c
@@ -22,17 +22,13 @@ static int mode;
extern Display *display;
/* Supported Formats */
-extern struct imageformat libjpeg;
-extern struct imageformat giflib;
-extern struct imageformat libpng;
-extern struct imageformat bmp;
-extern struct imageformat netpbm;
struct imageformat *formats[] = {
&libjpeg,
&bmp,
&libpng,
&netpbm,
&giflib, /* HACK! make gif last (uses read()) */
+ &imagemagick,
NULL
};
@@ -50,7 +46,7 @@ struct image *newimage(FILE *f){
struct imageformat **fmt = formats;
for(fmt = formats; *fmt; fmt++){
if((img = (*fmt)->open(f))){
- img->fmt = *fmt;
+ //img->fmt = *fmt;
img->ximg = NULL;
img->state = NONE;
return img;