X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/be4e4e27aa09c5ed35c784ce8e2067070bc7d00c..03a62a0ccb7f1ab7814bc88b39d5201bd82f0deb:/src/palmos/slider.cpp diff --git a/src/palmos/slider.cpp b/src/palmos/slider.cpp index 40c6220183..3776e7de96 100644 --- a/src/palmos/slider.cpp +++ b/src/palmos/slider.cpp @@ -117,7 +117,6 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id, // wxSL_RIGHT is ignored - always off // wxSL_TOP is ignored - always off // wxSL_SELRANGE is ignored - always off - // wxSL_INVERSE is ignored - always off // wxSL_VERTICAL is impossible in native form wxCHECK_MSG(!(style & wxSL_VERTICAL), false, _T("non vertical slider on PalmOS")); @@ -203,12 +202,12 @@ int wxSlider::GetValue() const return 0; uint16_t ret; CtlGetSliderValues(control, NULL, NULL, NULL, &ret); - return ret; + return ValueInvertOrNot(ret); } void wxSlider::SetValue(int value) { - SetIntValue(value); + SetIntValue(ValueInvertOrNot(value)); m_oldValue = m_oldPos = value; } @@ -328,7 +327,7 @@ bool wxSlider::SendUpdatedEvent() bool wxSlider::SendScrollEvent(EventType* event) { wxEventType scrollEvent; - int newPos = event->data.ctlRepeat.value; + int newPos = ValueInvertOrNot(event->data.ctlRepeat.value); if ( newPos == m_oldPos ) { // nothing changed since last event