diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-05-01 07:25:43 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-05-01 07:25:43 +1000 |
commit | 3f254e76019f574a74d7a7d419ccb97fbc8db958 (patch) | |
tree | 2f3455d6c7914a6b55bca83bd8d4828f1a6550df /src/gwin | |
parent | 3409fd29c9647546bc15af7602cbab4e3a34f54c (diff) | |
download | uGFX-3f254e76019f574a74d7a7d419ccb97fbc8db958.tar.gz uGFX-3f254e76019f574a74d7a7d419ccb97fbc8db958.tar.bz2 uGFX-3f254e76019f574a74d7a7d419ccb97fbc8db958.zip |
Revert "slider does not change position if disabled"
This reverts commit 2c57363efc343ae521857cddbcfbcaec50eaedab.
Diffstat (limited to 'src/gwin')
-rw-r--r-- | src/gwin/slider.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gwin/slider.c b/src/gwin/slider.c index ace90365..4c91ede6 100644 --- a/src/gwin/slider.c +++ b/src/gwin/slider.c @@ -262,10 +262,6 @@ void gwinSliderSetPosition(GHandle gh, int pos) { if (gh->vmt != (gwinVMT *)&sliderVMT) return; - // do not change the position if disabled - if (!gwinGetEnabled(gh)) - return; - if (gsw->min <= gsw->max) { if (pos < gsw->min) gsw->pos = gsw->min; else if (pos > gsw->max) gsw->pos = gsw->max; |