[Development] Retina display support

Kai-Uwe Behrmann ku.b at gmx.de
Fri Sep 21 07:12:17 CEST 2012


Am 20.09.12, 19:09 -0700 schrieb P Bai:
> I have a few questions about how to add retina display support to my application. I understand by reading an earlier discuss that you can add a few lines in the info.plist to enable HiDPI render. That would only work for text and standard widgets, right? How about icons and pixmaps? How do I detect if the application is running in HiDPI mode? For example if I write an image viewer program, how do I know when to draw a high resolution image? I guess I can just always force draw the high-res image to the rect of a regular sized image, but that would be a huge waste of system resource and performance drag when running on non-retina system. Are there any better solutions?

Aren't you seeing the window size in pixels as usual? With that available, 
you would have a generic answere for your kind of question.

kind regards
Kai-Uwe Behrmann
-- 
developing for colour management 
www.behrmann.name + www.oyranos.org


More information about the Development mailing list