slackbuilds/graphics/aaphoto/err_unsupport_format.diff

28 lines
705 B
Diff

diff -Naur aaphoto-ad4fc3c04b9e25212d78c231e1507458dfea8909/aaio.c aaphoto-ad4fc3c04b9e25212d78c231e1507458dfea8909.patched/aaio.c
--- aaphoto-ad4fc3c04b9e25212d78c231e1507458dfea8909/aaio.c 2016-07-10 06:55:14.000000000 -0400
+++ aaphoto-ad4fc3c04b9e25212d78c231e1507458dfea8909.patched/aaio.c 2024-10-07 22:12:48.451095842 -0400
@@ -1886,6 +1886,7 @@
/* if it's a BMP format, then load BMP with custom procedure */
if (GET_FILE_FORMAT(file_name) == 0){
if (BITMAP_READ_BMP(file_name)) return 1;
+ return 0;
}
else{
@@ -1908,13 +1909,13 @@
return 0;
}
- return 0;
+ return 1;
#endif
}
- return 0;
+ return 1;
}