commit 7d5f91b2d91f00fbfc7dec704f80cbcdf564ffb4
parent 20623a3836960ce87747e67cdf1ebcea685edc3d
Author: Christopher A. Oliver <[email protected]>
Date: Tue, 6 Oct 2015 22:41:12 -0400
Use the transform fn. DRY.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/UI/WidgetPDial.cpp b/src/UI/WidgetPDial.cpp
@@ -55,7 +55,7 @@ int WidgetPDial::handle(int event)
dragsize *= 10;
value(limit(oldvalue + my / dragsize * (max - min), min, max));
- tipwin->showValue(value()+value_offset);
+ tipwin->showValue(transform(value()));
value_damage();
if(this->when() != 0)
do_callback();
@@ -70,7 +70,7 @@ int WidgetPDial::handle(int event)
dragsize *= 10;
value(limit(value() + my / dragsize * (max - min), min, max));
- tipwin->showValue(value()+value_offset);
+ tipwin->showValue(transform(value()));
value_damage();
if(this->when() != 0)
do_callback();