Removed warning messages from gcc compile

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@942 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Bill Spitzak 1999-12-07 17:53:09 +00:00
parent 1e3bc4ba57
commit 3e0db7129e
2 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
//
// "$Id: Fl_Scrollbar.cxx,v 1.7.2.2 1999/12/04 12:22:37 mike Exp $"
// "$Id: Fl_Scrollbar.cxx,v 1.7.2.3 1999/12/07 17:53:08 bill Exp $"
//
// Scroll bar widget for the Fast Light Tool Kit (FLTK).
//
@ -39,8 +39,8 @@ void Fl_Scrollbar::increment_cb() {
switch (pushed_) {
case 1: i = -linesize_; break;
default:i = linesize_; break;
case 3: i = -S * (maximum() - minimum()) / W; break;
case 4: i = S * (maximum() - minimum()) / W; break;
case 3: i = -int(S * (maximum() - minimum()) / W); break;
case 4: i = int(S * (maximum() - minimum()) / W); break;
}
if (maximum() < minimum() && pushed_ < 3) i = -i;
handle_drag(clamp(value() + i));
@ -241,5 +241,5 @@ Fl_Scrollbar::Fl_Scrollbar(int X, int Y, int W, int H, const char* L)
}
//
// End of "$Id: Fl_Scrollbar.cxx,v 1.7.2.2 1999/12/04 12:22:37 mike Exp $".
// End of "$Id: Fl_Scrollbar.cxx,v 1.7.2.3 1999/12/07 17:53:08 bill Exp $".
//

View File

@ -1,5 +1,5 @@
//
// "$Id: Fl_Slider.cxx,v 1.8.2.3 1999/12/04 12:22:37 mike Exp $"
// "$Id: Fl_Slider.cxx,v 1.8.2.4 1999/12/07 17:53:09 bill Exp $"
//
// Slider widget for the Fast Light Tool Kit (FLTK).
//
@ -180,7 +180,7 @@ int Fl_Slider::handle(int event, int x, int y, int w, int h) {
handle_push();
case FL_DRAG: {
int W = (horizontal() ? w : h);
int H = (horizontal() ? h : w);
//int H = (horizontal() ? h : w);
int mx = (horizontal() ? Fl::event_x()-x : Fl::event_y()-y);
int S = int(slider_size_*W+.5);
int X;
@ -249,5 +249,5 @@ int Fl_Slider::handle(int event) {
}
//
// End of "$Id: Fl_Slider.cxx,v 1.8.2.3 1999/12/04 12:22:37 mike Exp $".
// End of "$Id: Fl_Slider.cxx,v 1.8.2.4 1999/12/07 17:53:09 bill Exp $".
//