]> git.tdb.fi Git - libs/gltk.git/commitdiff
Remove obsolete inside checks
authorMikko Rasa <tdb@tdb.fi>
Wed, 16 Oct 2013 12:12:39 +0000 (15:12 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 16 Oct 2013 15:55:17 +0000 (18:55 +0300)
source/hslider.cpp
source/vslider.cpp

index 35d0a411d36ce2eb26936e66597627a0a3c6bea2..2c6e968695439603031234b045dfb3ded26fc458 100644 (file)
@@ -44,9 +44,9 @@ void HSlider::rebuild_special(const Part &part)
        }
 }
 
-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)
index 53c8f511db5060816972a1c5f21fe5ae974361f9..e4c40d8123385ed283c1a1089a1c1346c627d946 100644 (file)
@@ -44,9 +44,9 @@ void VSlider::rebuild_special(const Part &part)
        }
 }
 
-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)