summaryrefslogtreecommitdiff
path: root/src/screen.h
diff options
context:
space:
mode:
author@syxhe <https://t.me/syxhe>2024-08-01 23:00:54 -0500
committer@syxhe <https://t.me/syxhe>2024-08-01 23:00:54 -0500
commit26107501a9c975a7b39b22402316f3e8cd8d0d8e (patch)
tree80b9910544a40ae8326b3bb1efe5c1de45533199 /src/screen.h
parentaa22b44084391c2c70ed05b5515e56c7af7caf22 (diff)
Move things out of main
Diffstat (limited to 'src/screen.h')
-rw-r--r--src/screen.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/screen.h b/src/screen.h
index c3deb00..5afbe6e 100644
--- a/src/screen.h
+++ b/src/screen.h
@@ -103,7 +103,10 @@ struct funcholder {
103}; 103};
104 104
105// Converts value from within the range of [oldmin, oldmax] to a value within the range [newmin, newmax] 105// Converts value from within the range of [oldmin, oldmax] to a value within the range [newmin, newmax]
106static float normalize(float value, float oldmin, float oldmax, float newmin, float newmax); 106float normalize(float value, float oldmin, float oldmax, float newmin, float newmax);
107
108// Find the result of x + offset and constrain it to the range [min, max]. x must be >= min
109int rangemod(int x, int offset, int min, int max);
107 110
108// Initialize a new curses color using standard rgb values (0-255) instead of curses' 0-1000 range 111// Initialize a new curses color using standard rgb values (0-255) instead of curses' 0-1000 range
109static int init_rgb_color(int colornum, int red, int green, int blue); 112static int init_rgb_color(int colornum, int red, int green, int blue);