aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 8553495..8ee8367 100644
--- a/src/main.c
+++ b/src/main.c
@@ -9,8 +9,7 @@
#include <sys/time.h>
-#include "jpeg.h"
-#include "gif.h"
+#include "meh.h"
Display *display;
int screen;
@@ -127,8 +126,7 @@ unsigned char *loadbuf(const char *filename, int *bufwidth, int *bufheight){
if(head[0] == 0xff && head[1] == 0xd8){
buf = loadjpeg(f, bufwidth, bufheight);
}else if(!memcmp("\x89PNG", head, 4)){
- printf("IT'S A PNG!!!\n");
- buf = NULL;
+ buf = loadpng(f, bufwidth, bufheight);
}else if(!memcmp("GIF", head, 3)){
buf = loadgif(f, bufwidth, bufheight);
}else{