aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristian C <cc@localhost>2025-03-07 23:48:17 -0800
committerChristian C <cc@localhost>2025-03-07 23:48:17 -0800
commit9be81ef43c8cfabe72fba16651dbfe62ed0f1123 (patch)
treee767747b5fd49b3bb2c2693328844b5ea0368b52 /lib
parentafad16ce636dd54fa1fdedd100eb93f1d7b508d6 (diff)
Testing suite
Diffstat (limited to 'lib')
-rw-r--r--lib/color.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/color.c b/lib/color.c
index 902a93d..a0a50fd 100644
--- a/lib/color.c
+++ b/lib/color.c
@@ -4,7 +4,7 @@
// Color Equal to Background
// Background: zeros in RGB, alpha can be whatever
-bool_t color_zero(uint8_t* color1, size_t channels) {
+bool_t color_zero(const uint8_t* color1, size_t channels) {
for (size_t idx = 0; idx < channels; idx++) {
if (idx == 3) {
break;
@@ -18,7 +18,7 @@ bool_t color_zero(uint8_t* color1, size_t channels) {
// Color Equality
// Determine if two colors are identical
-bool_t color_equal(uint8_t* color1, uint8_t* color2, size_t channels) {
+bool_t color_equal(const uint8_t* color1, const uint8_t* color2, size_t channels) {
for (size_t idx = 0; idx < channels; idx++) {
if (color1[idx] != color2[idx]) {
return FALSE;