diff options
Diffstat (limited to 'src/screen.h')
| -rw-r--r-- | src/screen.h | 5 |
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] |
| 106 | static float normalize(float value, float oldmin, float oldmax, float newmin, float newmax); | 106 | float 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 | ||
| 109 | int 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 |
| 109 | static int init_rgb_color(int colornum, int red, int green, int blue); | 112 | static int init_rgb_color(int colornum, int red, int green, int blue); |
