diff options
| -rw-r--r-- | teensy/teensy_ui.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/teensy/teensy_ui.c b/teensy/teensy_ui.c index 8ee35fb..050b1a1 100644 --- a/teensy/teensy_ui.c +++ b/teensy/teensy_ui.c @@ -498,6 +498,7 @@ void tyui_slider_ex( // Grabber { + value = ty_clamp(value, min, max); float p = (value - min) / max; int x = (rect.w - grabber_size) * p + rect.x; |
