Fl_Scroll fix from Bill Spitzak.

git-svn-id: file:///fltk/svn/fltk/trunk@93 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 1998-11-18 18:38:32 +00:00
parent c34eeb0d55
commit a470744d8c

View File

@ -1,5 +1,5 @@
//
// "$Id: Fl_Scroll.cxx,v 1.4 1998/10/21 14:20:20 mike Exp $"
// "$Id: Fl_Scroll.cxx,v 1.5 1998/11/18 18:38:32 mike Exp $"
//
// Scroll widget for the Fast Light Tool Kit (FLTK).
//
@ -153,12 +153,12 @@ void Fl_Scroll::draw() {
scrollbar.resize(scrollbar.align()&FL_ALIGN_LEFT ? X-scrollbar.w() : X+W,
Y, scrollbar.w(), H);
scrollbar.value(oldy = yposition_ = Y, H, t, b-t);
scrollbar.value(oldy = yposition_ = (Y-t), H, t, b-t);
hscrollbar.resize(X,
scrollbar.align()&FL_ALIGN_TOP ? Y-hscrollbar.h() : Y+H,
W, hscrollbar.h());
hscrollbar.value(oldx = xposition_ = X, W, l, r-l);
hscrollbar.value(oldx = xposition_ = (X-l), W, l, r-l);
// draw the scrollbars:
if (d & FL_DAMAGE_ALL) {
@ -231,5 +231,5 @@ int Fl_Scroll::handle(int event) {
}
//
// End of "$Id: Fl_Scroll.cxx,v 1.4 1998/10/21 14:20:20 mike Exp $".
// End of "$Id: Fl_Scroll.cxx,v 1.5 1998/11/18 18:38:32 mike Exp $".
//