X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/289532452089421ddadbd4726a8469511a19ab76..4521f6c88cbefa7f13e3733d344776b795f981e4:/src/cocoa/slider.mm diff --git a/src/cocoa/slider.mm b/src/cocoa/slider.mm index 9610fc44bb..afa3767d3f 100644 --- a/src/cocoa/slider.mm +++ b/src/cocoa/slider.mm @@ -5,7 +5,6 @@ // Mark Oxenham // Modified by: // Created: 2003/06/19 -// RCS-ID: $Id$ // Copyright: (c) 2003 David Elliott // (c) 2007 Software 2000 Ltd. // Licence: wxWindows licence @@ -87,8 +86,7 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID winid, // minValue > maxValue not handled, tickMarks set to 0 if ( style & wxSL_AUTOTICKS ) tickMarks = ((maxValue - minValue >= 0) ? (maxValue - minValue) : 0); - // arg2 needed a value, doesnt do anything - SetTickFreq(tickMarks,1); + SetTickFreq(tickMarks); return true; } @@ -206,7 +204,7 @@ int wxSlider::GetMax() const return [GetNSSlider() maxValue]; } -void wxSlider::SetTickFreq(int n, int pos) +void wxSlider::DoSetTickFreq(int n) { const int numTicks = (n > 0) ? ((GetMax() - GetMin()) / n) + 1 : 0; [GetNSSlider() setNumberOfTickMarks:numTicks];