summaryrefslogtreecommitdiff
path: root/FL/Fl_Text_Display.H
diff options
context:
space:
mode:
Diffstat (limited to 'FL/Fl_Text_Display.H')
-rw-r--r--FL/Fl_Text_Display.H5
1 files changed, 3 insertions, 2 deletions
diff --git a/FL/Fl_Text_Display.H b/FL/Fl_Text_Display.H
index a15c6a465..d96c81ba3 100644
--- a/FL/Fl_Text_Display.H
+++ b/FL/Fl_Text_Display.H
@@ -293,7 +293,7 @@ public:
Sets the default font used when drawing text in the widget.
\param s default text font face
*/
- void textfont(Fl_Font s) {textfont_ = s; mColumnScale = 0;}
+ void textfont(Fl_Font s) {textfont_ = s; mColumnScale = 0; recalc_display(); }
/**
Gets the default size of text in the widget.
@@ -305,7 +305,7 @@ public:
Sets the default size of text in the widget.
\param s new text size
*/
- void textsize(Fl_Fontsize s) {textsize_ = s; mColumnScale = 0;}
+ void textsize(Fl_Fontsize s) {textsize_ = s; mColumnScale = 0; recalc_display(); }
/**
Gets the default color of text in the widget.
@@ -323,6 +323,7 @@ public:
int wrapped_row(int row) const;
void wrap_mode(int wrap, int wrap_margin);
+ virtual void recalc_display();
virtual void resize(int X, int Y, int W, int H);
/**