Fix a merge issue and a brain fart

This commit is contained in:
Martin Dørum 2019-05-31 13:23:53 +02:00
parent 371c758999
commit 4eccac4872
1 changed files with 2 additions and 2 deletions

View File

@ -270,7 +270,7 @@ bool bar_reversed = false;
int is_directory(const char *path) {
struct stat path_stat;
stat(path, &path_stat);
return !S_ISDIR(path_stat.st_mode);
return S_ISDIR(path_stat.st_mode);
}
/*
@ -2130,7 +2130,7 @@ int main(int argc, char *argv[]) {
init_colors_once();
if (image_path != NULL) {
if (!is_directory(image_path)) {
img = load_image(image_path);
img = load_image(image_path, image_raw_format);
} else {
/* Path to a directory is provided -> use slideshow mode */
load_slideshow_images(image_path, image_raw_format);