summaryrefslogtreecommitdiff
path: root/src/Fl_Device.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_Device.cxx
parent22a5dc3085836f17c0e895040b7dac4a7a0919c5 (diff)
New virtual member function bool Fl_Surface_Device::is_current()
Diffstat (limited to 'src/Fl_Device.cxx')
-rw-r--r--src/Fl_Device.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Fl_Device.cxx b/src/Fl_Device.cxx
index 1166c7582..db632d74c 100644
--- a/src/Fl_Device.cxx
+++ b/src/Fl_Device.cxx
@@ -72,6 +72,10 @@ void Fl_Surface_Device::set_current(void)
Fl_Surface_Device* Fl_Surface_Device::surface_; // the current target surface of graphics operations
+/** Is this surface the current drawing surface? */
+bool Fl_Surface_Device::is_current() {
+ return surface_ == this;
+}
Fl_Surface_Device::~Fl_Surface_Device()
{