Gaining access to the scaling factor (or pixel width/height as explained in docs) for Metal layers on non-GL windows would be very helpful for all the same reasons.
FWIW, I have attempted to use Fl_Gl_Window with Metal, but it prints this message:
2021-05-08 14:52:24.555 minimal-fltk[88155:717115] CoreAnimation: setting `contents' on CAMetalLayer may result in undefined behavior
I don't know the details here, but it looks like a conflict between the Fl_Gl_Window cocoa driver and my graphics stack which uses CAMetalLayer. So I'm ruling out Fl_Gl_Window as useful in my situation. It does support pixels_per_unit() though, and it also returns the expected scale factor that the app needs.
My other alternative is always assuming the scaling factor is 2. Works great on my MacBook Pro, but not so much on other platforms...
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.