1
0
Fork 0
mirror of https://github.com/Raymo111/i3lock-color.git synced 2024-11-11 13:50:52 -05:00

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

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);