aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/yawa.c8
-rw-r--r--src/yawa.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/yawa.c b/src/yawa.c
index 4b71d1b..1a669a5 100644
--- a/src/yawa.c
+++ b/src/yawa.c
@@ -183,11 +183,11 @@ set_root_atoms (Pixmap pixmap)
return 1;
}
-int
-parse_color (char *hex, PColor c, int a)
+bool
+parse_color (char *hex, Color *c, int a)
{
if ((strlen(hex) != 7) && (strlen(hex) != 9))
- return 0;
+ return false;
int len;
if (strlen(hex) == 9) {
@@ -226,7 +226,7 @@ parse_color (char *hex, PColor c, int a)
c->a = a;
}
- return 1;
+ return true;
}
int
diff --git a/src/yawa.h b/src/yawa.h
index e2b5d1b..38f15a4 100644
--- a/src/yawa.h
+++ b/src/yawa.h
@@ -5,13 +5,13 @@
typedef struct
{
int r, g, b, a;
-} Color, *PColor;
+} Color;
typedef enum
{ Full, Fill, Center, Tile } ImageMode;
int set_root_atoms (Pixmap pixmap);
-int parse_color (char *arg, PColor c, int a);
+bool parse_color (char *arg, Color *c, int a);
int load_image (ImageMode mode, const char *arg, int rootW, int rootH, int alpha,
Imlib_Image rootimg);