summaryrefslogtreecommitdiff
path: root/src/Fl_Printer.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-04-10 13:14:04 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-04-10 13:14:04 +0200
commit7a0bebb22fba0e2ed260b513421f6082a1c27a9e (patch)
tree2dd0a5b06a4f404767527722bb3de2b08a3db05c /src/Fl_Printer.cxx
parent22a5dc3085836f17c0e895040b7dac4a7a0919c5 (diff)
New virtual member function bool Fl_Surface_Device::is_current()
Diffstat (limited to 'src/Fl_Printer.cxx')
-rw-r--r--src/Fl_Printer.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Fl_Printer.cxx b/src/Fl_Printer.cxx
index d787e0365..390f1e6e1 100644
--- a/src/Fl_Printer.cxx
+++ b/src/Fl_Printer.cxx
@@ -214,6 +214,10 @@ void Fl_Printer::set_current(void)
printer->set_current();
}
+bool Fl_Printer::is_current() {
+ return surface() == printer;
+}
+
Fl_Printer::~Fl_Printer(void)
{
delete printer;