diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-04-10 13:14:04 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-04-10 13:14:04 +0200 |
| commit | 7a0bebb22fba0e2ed260b513421f6082a1c27a9e (patch) | |
| tree | 2dd0a5b06a4f404767527722bb3de2b08a3db05c /src/Fl_Copy_Surface.cxx | |
| parent | 22a5dc3085836f17c0e895040b7dac4a7a0919c5 (diff) | |
New virtual member function bool Fl_Surface_Device::is_current()
Diffstat (limited to 'src/Fl_Copy_Surface.cxx')
| -rw-r--r-- | src/Fl_Copy_Surface.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Fl_Copy_Surface.cxx b/src/Fl_Copy_Surface.cxx index 3f1ef2314..0ebe3ee0f 100644 --- a/src/Fl_Copy_Surface.cxx +++ b/src/Fl_Copy_Surface.cxx @@ -38,6 +38,10 @@ void Fl_Copy_Surface::set_current() { if (platform_surface) platform_surface->set_current(); } +bool Fl_Copy_Surface::is_current() { + return surface() == platform_surface; +} + void Fl_Copy_Surface::translate(int x, int y) { if (platform_surface) platform_surface->translate(x, y); } @@ -59,6 +63,11 @@ int Fl_Copy_Surface::printable_rect(int *w, int *h) { return 1; } +int Fl_Copy_Surface_Driver::printable_rect(int *w, int *h) { + *w = width; *h = height; + return 0; +} + // // End of "$Id$". // |
