summaryrefslogtreecommitdiff
path: root/background-image.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-01-23 09:16:34 -0500
committerGitHub <noreply@github.com>2019-01-23 09:16:34 -0500
commit5d60610cb0014b93fc16482e55bab2d49fbef1bc (patch)
tree3e5d05307955dd1ddcd49f7fe00bae759f6ab102 /background-image.c
parentf0353900aed11f72f2f100cca1fcb60d34fc1c06 (diff)
parentb87e2a4916684944c31d452166631b39a01e57c6 (diff)
Merge pull request #30 from ianyfan/cleanup
Cleanup
Diffstat (limited to 'background-image.c')
-rw-r--r--background-image.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/background-image.c b/background-image.c
index d2ab03b..c765bdf 100644
--- a/background-image.c
+++ b/background-image.c
@@ -1,5 +1,4 @@
#include <assert.h>
-#include <stdbool.h>
#include "background-image.h"
#include "cairo.h"
#include "log.h"
@@ -30,7 +29,7 @@ cairo_surface_t *load_background_image(const char *path) {
if (!pixbuf) {
swaylock_log(LOG_ERROR, "Failed to load background image (%s).",
err->message);
- return false;
+ return NULL;
}
image = gdk_cairo_image_surface_create_from_pixbuf(pixbuf);
g_object_unref(pixbuf);