summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2021-10-06 18:35:00 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2021-10-06 18:35:00 +0200
commit3ee8864bfc2badfc6f5dfcd09616eff9c7b2e708 (patch)
tree5b8e86e38e75a6d0f10989234b6f2ad5c67eddc0 /test
parentcf20474d7c13aeeb59f0248e86a26143c500b47c (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 'test')
0 files changed, 0 insertions, 0 deletions