From 5b802be52ba63b7525e415eb26cabef2aa5e293b Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Mon, 8 Apr 2024 11:19:14 +0200 Subject: [PATCH] Add Tabloid paper size to menu_print_page_size array --- src/drivers/Posix/Fl_Posix_Printer_Driver.cxx | 3 +++ src/print_panel.cxx | 1 + 2 files changed, 4 insertions(+) diff --git a/src/drivers/Posix/Fl_Posix_Printer_Driver.cxx b/src/drivers/Posix/Fl_Posix_Printer_Driver.cxx index 6697f23d6..e82126fa5 100644 --- a/src/drivers/Posix/Fl_Posix_Printer_Driver.cxx +++ b/src/drivers/Posix/Fl_Posix_Printer_Driver.cxx @@ -277,6 +277,9 @@ int Fl_Posix_Printer_Driver::begin_job(int pages, int *firstpage, int *lastpage, case 8: format = Fl_Paged_Device::DLE; break; + case 9: + format = Fl_Paged_Device::TABLOID; + break; default: format = Fl_Paged_Device::A4; } diff --git a/src/print_panel.cxx b/src/print_panel.cxx index aa1908f35..0c139f5b7 100644 --- a/src/print_panel.cxx +++ b/src/print_panel.cxx @@ -118,6 +118,7 @@ static const Fl_Menu_Item menu_print_page_size[] = { {"B5", 0, 0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0}, {"Com10", 0, 0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0}, {"DL", 0, 0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0}, + {"Tabloid", 0, 0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0}, {0,0,0,0,0,0,0,0,0} };