Prevent build of BSlider::SetLimits if not building specifically for Haiku

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10781 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm 2005-01-16 22:33:14 +00:00
parent f4687e882c
commit 08d9a7e92d

View File

@ -1249,12 +1249,14 @@ void BSlider::SetFont(const BFont *font, uint32 properties)
} }
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
#ifdef __HAIKU__
void BSlider::SetLimits(int32 minimum, int32 maximum) void BSlider::SetLimits(int32 minimum, int32 maximum)
{ {
// TODO: Redraw // TODO: Redraw
fMinValue = minimum; fMinValue = minimum;
fMaxValue = maximum; fMaxValue = maximum;
} }
#endif
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void BSlider::_DrawBlockThumb() void BSlider::_DrawBlockThumb()
{ {
@ -1424,7 +1426,9 @@ float BSlider::_MaxPosition() const
extern "C" extern "C"
void _ReservedSlider4__7BSlider(BSlider *slider, int32 minimum, int32 maximum) void _ReservedSlider4__7BSlider(BSlider *slider, int32 minimum, int32 maximum)
{ {
#ifdef __HAIKU__
slider->SetLimits(minimum, maximum); slider->SetLimits(minimum, maximum);
#endif
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void BSlider::_ReservedSlider5() {} void BSlider::_ReservedSlider5() {}