diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Text_Display.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index a8fb8d817..026dbe94f 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -38,6 +38,7 @@ #include <FL/Fl_Text_Buffer.H> #include <FL/Fl_Text_Display.H> #include <FL/Fl_Window.H> +#include <FL/Fl_Printer.H> #undef min #undef max @@ -3359,8 +3360,10 @@ void Fl_Text_Display::draw(void) { // draw the non-text, non-scrollbar areas. if (damage() & FL_DAMAGE_ALL) { // printf("drawing all (box = %d)\n", box()); - // draw the background - fl_rectf(text_area.x, text_area.y, text_area.w, text_area.h, color() ); + if (Fl_Surface_Device::surface()->class_name() == Fl_Printer::class_id) { + // if to printer, draw the background + fl_rectf(text_area.x, text_area.y, text_area.w, text_area.h, color() ); + } // draw the box() int W = w(), H = h(); draw_box(box(), x(), y(), W, H, color()); |
