diff options
| -rw-r--r-- | FL/Fl_Text_Display.H | 4 | ||||
| -rw-r--r-- | src/Fl_Text_Display.cxx | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/FL/Fl_Text_Display.H b/FL/Fl_Text_Display.H index d96c81ba3..2ea96dd17 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; recalc_display(); } + void textfont(Fl_Font s) {textfont_ = s; mColumnScale = 0; } /** 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; recalc_display(); } + void textsize(Fl_Fontsize s) {textsize_ = s; mColumnScale = 0; } /** Gets the default color of text in the widget. diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index dfed62395..a227d8850 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -3663,6 +3663,7 @@ void Fl_Text_Display::draw(void) { // draw the non-text, non-scrollbar areas. if (damage() & FL_DAMAGE_ALL) { + recalc_display(); // printf("drawing all (box = %d)\n", box()); if (Fl_Surface_Device::surface() != Fl_Display_Device::display_device()) { // if to printer, draw the background |
