diff options
author | Rob Haarsma <phaseIV@zonnet.nl> | 2003-02-09 15:47:43 +0300 |
---|---|---|
committer | Rob Haarsma <phaseIV@zonnet.nl> | 2003-02-09 15:47:43 +0300 |
commit | 0841582d0b7759442aa5667dc91ea7102c80fc07 (patch) | |
tree | 35b7ba733b8402643dbbeb49ae027436a2035ff2 /source/blender/imbuf | |
parent | aaa47ced530f3210bdd6c07fbbc3cc7ead04364c (diff) |
disabled loading of bmp files :(
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r-- | source/blender/imbuf/intern/util.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/util.c b/source/blender/imbuf/intern/util.c index e1abc273076..8f9c35532f8 100644 --- a/source/blender/imbuf/intern/util.c +++ b/source/blender/imbuf/intern/util.c @@ -56,13 +56,13 @@ int IMB_ispic(char *name) { struct stat st; - int fp, buf[16]; + int fp, buf[10]; int ofs = 0; if (ib_stat(name,&st) == -1) return(0); if (((st.st_mode) & S_IFMT) == S_IFREG){ if ((fp = open(name,O_BINARY|O_RDONLY)) >= 0){ - if (read(fp,buf,64)==64){ + if (read(fp,buf,32)==32){ close(fp); if (buf[ofs] == CAT) ofs += 3; if (buf[ofs] == FORM){ @@ -86,7 +86,9 @@ int IMB_ispic(char *name) } if (imb_is_a_png(buf)) return(PNG); if (imb_is_a_targa(buf)) return(TGA); +/* if (imb_is_a_bmp(buf)) return(BMP); +*/ return(FALSE); } close(fp); |