Revert "slider does not change position if disabled"

This reverts commit 2c57363efc.
ugfx_release_2.6
inmarket 2014-05-01 07:25:43 +10:00
parent 3409fd29c9
commit 3f254e7601
1 changed files with 0 additions and 4 deletions

View File

@ -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;