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:
parent
371c758999
commit
4eccac4872
1 changed files with 2 additions and 2 deletions
4
i3lock.c
4
i3lock.c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue