diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-10-06 18:35:00 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-10-06 18:35:00 +0200 |
| commit | 3ee8864bfc2badfc6f5dfcd09616eff9c7b2e708 (patch) | |
| tree | 5b8e86e38e75a6d0f10989234b6f2ad5c67eddc0 /GL | |
| parent | cf20474d7c13aeeb59f0248e86a26143c500b47c (diff) | |
Simplify and fix the code of Fl_Scroll::bbox()
Declare Fl_Scroll::bbox() and Fl_Scroll::recalc_scrollbars() 'const'.
These methods don't change the Fl_Scroll widget.
Use Fl_Scroll::recalc_scrollbars() in Fl_Scroll::bbox() to simplify
the code and to avoid code duplication.
bbox() can now be called at any time and returns the correct values,
no matter if draw() has been called before.
Diffstat (limited to 'GL')
0 files changed, 0 insertions, 0 deletions
