disabled loading of bmp files :(
authorRob Haarsma <phaseIV@zonnet.nl>
Sun, 9 Feb 2003 12:47:43 +0000 (12:47 +0000)
committerRob Haarsma <phaseIV@zonnet.nl>
Sun, 9 Feb 2003 12:47:43 +0000 (12:47 +0000)
source/blender/imbuf/intern/util.c
source/blender/src/filesel.c

index e1abc273076c7dd863940b71017e8d23ec82a059..8f9c35532f86afc94f5df75748140cd78f82de16 100644 (file)
 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);
index 81ebf22220233b3920425cf171b1e2a132057ee5..34e0ea8d68cd2089b138bf1003ddbf1ec6c152bd 100644 (file)
@@ -508,7 +508,7 @@ void test_flags_file(SpaceFile *sfile)
                                        BLI_testextensie(file->relname, ".tga") ||
                                        BLI_testextensie(file->relname, ".rgb") ||
                                        BLI_testextensie(file->relname, ".png") ||
-                                       BLI_testextensie(file->relname, ".bmp") ||
+/*                                     BLI_testextensie(file->relname, ".bmp") || */
                                        BLI_testextensie(file->relname, ".iff") ||
                                        BLI_testextensie(file->relname, ".lbm") ||
                                        BLI_testextensie(file->relname, ".sgi")) {