From: Mikko Rasa Date: Wed, 16 Oct 2013 12:12:39 +0000 (+0300) Subject: Remove obsolete inside checks X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=7f5b8877ae1a73d3b664d7ee6f0041b602bdd049;p=libs%2Fgltk.git Remove obsolete inside checks --- diff --git a/source/hslider.cpp b/source/hslider.cpp index 35d0a41..2c6e968 100644 --- a/source/hslider.cpp +++ b/source/hslider.cpp @@ -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((geom.w-slider_size)*(value-min)/(max-min)); if(xmin) + if(btn==1 && max>min) { int sy = static_cast((geom.h-slider_size)*(value-min)/(max-min)); if(y