summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/device.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/device.cxx b/test/device.cxx
index 050b159cd..b4a4e0ee1 100644
--- a/test/device.cxx
+++ b/test/device.cxx
@@ -599,11 +599,9 @@ void print(Fl_Widget *, void *w) {
Fl_Widget * g = (Fl_Widget *)w;
Fl_Printer * p = new Fl_Printer();
- //p->page(Fl_Printer::A4);
- //p->place(g, 70, 70, p->page_width() - 140, p->page_height() - 140, FL_ALIGN_CENTER);
if (!p->start_job(1)) {
p->start_page();
- p->print_widget(g);
+ p->print_window(g->window());
p->end_page();
p->end_job();
}
@@ -716,7 +714,7 @@ b_bitmap.labelcolor(FL_GREEN);
tx.box(FL_SHADOW_BOX);
tx.labelsize(12);
-
+ tx.hide();
c2->end();
Fl_Button *b4 = new Fl_Button(10,5, 150, 25, "Print");