STR #3395: Revisions as per chris's comment #4.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12530 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Greg Ercolano 2017-10-27 17:03:55 +00:00
parent a27da5e582
commit 2a3e869210
2 changed files with 3 additions and 2 deletions

View File

@ -293,7 +293,7 @@ public:
Sets the default font used when drawing text in the widget. Sets the default font used when drawing text in the widget.
\param s default text font face \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. Gets the default size of text in the widget.
@ -305,7 +305,7 @@ public:
Sets the default size of text in the widget. Sets the default size of text in the widget.
\param s new text size \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. Gets the default color of text in the widget.

View File

@ -3663,6 +3663,7 @@ void Fl_Text_Display::draw(void) {
// draw the non-text, non-scrollbar areas. // draw the non-text, non-scrollbar areas.
if (damage() & FL_DAMAGE_ALL) { if (damage() & FL_DAMAGE_ALL) {
recalc_display();
// printf("drawing all (box = %d)\n", box()); // printf("drawing all (box = %d)\n", box());
if (Fl_Surface_Device::surface() != Fl_Display_Device::display_device()) { if (Fl_Surface_Device::surface() != Fl_Display_Device::display_device()) {
// if to printer, draw the background // if to printer, draw the background