aboutsummaryrefslogtreecommitdiff
path: root/atom_inspector_nk.c
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-11-05 17:06:43 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-11-05 17:06:43 +0100
commit18f88c1446db7094a0e26b8dfbbf224c5af1db8f (patch)
tree3516c6a5eb5b3c3053da6f09c8600c2e82c4093e /atom_inspector_nk.c
parent38eb4c53d89ebeb5718bd9f663d200cf6e81ec2d (diff)
downloadsherlock.lv2-18f88c1446db7094a0e26b8dfbbf224c5af1db8f.tar.xz
define colors only once.
Diffstat (limited to 'atom_inspector_nk.c')
-rw-r--r--atom_inspector_nk.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/atom_inspector_nk.c b/atom_inspector_nk.c
index 22cbf57..a104f0c 100644
--- a/atom_inspector_nk.c
+++ b/atom_inspector_nk.c
@@ -16,23 +16,11 @@
*/
#include <ctype.h>
+#include <inttypes.h>
#include <sherlock.h>
#include <sherlock_nk.h>
-#define ful 0xff
-#define one 0xbb
-#define two 0x66
-#define non 0x0
-static const struct nk_color white = {.r = one, .g = one, .b = one, .a = ful};
-static const struct nk_color gray = {.r = two, .g = two, .b = two, .a = ful};
-static const struct nk_color yellow = {.r = one, .g = one, .b = non, .a = ful};
-static const struct nk_color magenta = {.r = one, .g = two, .b = one, .a = ful};
-static const struct nk_color green = {.r = non, .g = one, .b = non, .a = ful};
-static const struct nk_color blue = {.r = non, .g = one, .b = one, .a = ful};
-static const struct nk_color orange = {.r = one, .g = two, .b = non, .a = ful};
-static const struct nk_color violet = {.r = two, .g = two, .b = one, .a = ful};
-
#define NS_RDF (const uint8_t*)"http://www.w3.org/1999/02/22-rdf-syntax-ns#"
#define NS_RDFS (const uint8_t*)"http://www.w3.org/2000/01/rdf-schema#"
#define NS_XSD (const uint8_t*)"http://www.w3.org/2001/XMLSchema#"