mirror of https://github.com/fltk/fltk
Added Fl_Roller fix from 2.0 tree.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@719 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
9afb77da56
commit
aa9c028aeb
|
@ -1,5 +1,5 @@
|
||||||
//
|
//
|
||||||
// "$Id: Fl_Roller.cxx,v 1.6 1999/01/07 19:17:26 mike Exp $"
|
// "$Id: Fl_Roller.cxx,v 1.6.2.1 1999/09/15 16:07:03 mike Exp $"
|
||||||
//
|
//
|
||||||
// Roller widget for the Fast Light Tool Kit (FLTK).
|
// Roller widget for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
|
@ -55,6 +55,7 @@ void Fl_Roller::draw() {
|
||||||
int Y = y()+Fl::box_dy(box());
|
int Y = y()+Fl::box_dy(box());
|
||||||
int W = w()-Fl::box_dw(box())-1;
|
int W = w()-Fl::box_dw(box())-1;
|
||||||
int H = h()-Fl::box_dh(box())-1;
|
int H = h()-Fl::box_dh(box())-1;
|
||||||
|
if (W<=0 || H <=0) return;
|
||||||
int offset = step() ? int(value()/step()) : 0;
|
int offset = step() ? int(value()/step()) : 0;
|
||||||
const double ARC = 1.5; // 1/2 the number of radians visible
|
const double ARC = 1.5; // 1/2 the number of radians visible
|
||||||
const double delta = .2; // radians per knurl
|
const double delta = .2; // radians per knurl
|
||||||
|
@ -136,5 +137,5 @@ Fl_Roller::Fl_Roller(int X,int Y,int W,int H,const char* L)
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Roller.cxx,v 1.6 1999/01/07 19:17:26 mike Exp $".
|
// End of "$Id: Fl_Roller.cxx,v 1.6.2.1 1999/09/15 16:07:03 mike Exp $".
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue