}
}
-void HSlider::button_press(int x, int y, unsigned btn)
+void HSlider::button_press(int x, int, unsigned btn)
{
- if(btn==1 && geom.is_inside_relative(x, y) && max>min)
+ if(btn==1 && max>min)
{
int sx = static_cast<int>((geom.w-slider_size)*(value-min)/(max-min));
if(x<sx)
}
}
-void VSlider::button_press(int x, int y, unsigned btn)
+void VSlider::button_press(int, int y, unsigned btn)
{
- if(btn==1 && geom.is_inside_relative(x, y) && max>min)
+ if(btn==1 && max>min)
{
int sy = static_cast<int>((geom.h-slider_size)*(value-min)/(max-min));
if(y<sy)