summaryrefslogtreecommitdiffhomepage
path: root/src/sst.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2023-05-02 19:16:22 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2023-05-04 23:49:27 +0100
commit5194eeb0e7bb5d2a2086c96ed04c2a47f9594d87 (patch)
treea32ab5c832ae312cb8ddd9fb45dc3f894ac39820 /src/sst.c
parentbb5ce99e6cac43414a4bc61a636888e9f1f69b8c (diff)
Refactor the RGBA colour struct into engineapi.h
In both the engine and SST it's used in more places than just console printing, so it makes more sense to give it a more appropriate nanme and location.
Diffstat (limited to 'src/sst.c')
-rw-r--r--src/sst.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/sst.c b/src/sst.c
index 788a81d..93c194a 100644
--- a/src/sst.c
+++ b/src/sst.c
@@ -1,5 +1,5 @@
/*
- * Copyright © 2022 Michael Smith <mikesmiffy128@gmail.com>
+ * Copyright © 2023 Michael Smith <mikesmiffy128@gmail.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -179,8 +179,6 @@ static const void *const *const plugin_obj;
static bool already_loaded = false, skip_unload = false;
-#define RGBA(r, g, b, a) (&(struct con_colour){(r), (g), (b), (a)})
-
// auto-update message. see below in do_featureinit()
static const char *updatenotes = "\
* various internal cleanup\n\
@@ -201,8 +199,8 @@ static void do_featureinit(void) {
#else
unsetenv("SST_UPDATED");
#endif
- struct con_colour gold = {255, 210, 0, 255};
- struct con_colour white = {255, 255, 255, 255};
+ struct rgba gold = {255, 210, 0, 255};
+ struct rgba white = {255, 255, 255, 255};
con_colourmsg(&white, "\n" NAME " was just ");
con_colourmsg(&gold, "UPDATED");
con_colourmsg(&white, " to version ");