summaryrefslogtreecommitdiff
path: root/test/device.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-01-11 14:51:30 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-01-11 14:57:58 +0100
commit2990717d6e2548837d0a81916c85299105b27b0c (patch)
tree13e00963578c2e980bcde6b9dd8a7e7c57c3bf85 /test/device.cxx
parent006d71c663112316c49ff50f395f7d0aef8ebfe8 (diff)
Implement Fl_Window::icon() and default_icon() for macOS
The implementation is effective for macOS 10.10 and above. Demo program test/device uses the new implementation.
Diffstat (limited to 'test/device.cxx')
-rw-r--r--test/device.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/device.cxx b/test/device.cxx
index 94b7a7f25..964e4da84 100644
--- a/test/device.cxx
+++ b/test/device.cxx
@@ -754,6 +754,10 @@ int main(int argc, char ** argv) {
w3->end();
w2->end();
+ Fl_RGB_Image *rgba_icon = new Fl_RGB_Image(pixmap);
+ Fl_Window::default_icon(rgba_icon);
+ //w2->icon(rgba_icon);
+ delete rgba_icon;
w2->show(argc, argv);
Fl::run();