summaryrefslogtreecommitdiff
path: root/src/fl_draw.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2020-02-03 16:35:28 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2020-02-03 16:35:28 +0100
commitdd3485c57a0ef7ffa5e00edc9fb9937004f3ca54 (patch)
tree7b48142d1eec3e61318e9de4f9b3addfc688bfd7 /src/fl_draw.cxx
parentb8ab77e39c01b9019edaeaa09d5d08c7b21f75ab (diff)
Fix regression calling fl_font() w/o draw context
According to the documentation fl_font(face, size) may be called "outside a draw context if necessary to call fl_width()". This worked in 1.3.5 but did not in 1.4 (so far). I reworded the docs to make clear that other measurement functions can be called as well and refactored the code to make sure that fl_font(face, size) will open the display if necessary.
Diffstat (limited to 'src/fl_draw.cxx')
0 files changed, 0 insertions, 0 deletions