From 2990717d6e2548837d0a81916c85299105b27b0c Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sat, 11 Jan 2020 14:51:30 +0100 Subject: 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. --- test/device.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') 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(); -- cgit v1.2.3