On Jan 7, 2011, at 2:13 AM, Manolo Gouy wrote: > ... > About Fl::screen_dpi() on Mac OS: > > unfortunately, the system function userSpaceScaleFactor > always returns 1 (unless special measures are taken, see below) > whatever the screen and screen resolution you use. I have here > a MacBook Pro and an external display. If I change the resolution > of any of them, Fl::screen_dpi() always returns the same 72x72 ppi > even though the real size of windows much changes. > > See > http://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/HiDPIOverview/HiDPIConcepts/HiDPIConcepts.html > and specially its "How to Change the Scale Factor" part > that explains that the userSpaceScaleFactor call is close to useless.
Also keep in mind that HiDPI support has never been turned on in any released version of Mac OS X, so you can expect changes to how this all works in the future. Stick with 72 PPI/DPI as the reported resolution for now. ________________________________________ Michael Sweet, Easy Software Products
_______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
