Odd bug in HIThemeDrawWindowFrame on a retina display
Odd bug in HIThemeDrawWindowFrame on a retina display
- Subject: Odd bug in HIThemeDrawWindowFrame on a retina display
- From: John Weeks <email@hidden>
- Date: Fri, 26 Sep 2014 13:49:36 -0700
I need to draw a bitmap image of a utility window title bar. I am using HIThemeDrawWindowFrame to draw into a CGBitmapContext at double resolution. I am testing this code on OS X 10.9.4 using a fake retina display (Displays settings, Resolution: Scaled, selecting a (HiDPI) setting).
On the fake retina display, the code draws a very odd-looking doubled titlebar with two close boxes instead of drawing a hi-resolution titlebar. It seems like it must be a bug in HIThemeDrawWindowFrame() because if I change kThemeUtilityWindow to kThemeDocumentWindow, it draws perfectly.
Is there a way around this? Should I be using some sort of more-modern API to do this? Every bit of code I've found via Google seems to draw UI elements using HITheme APIs.
Thanks for any insight,
John Weeks
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden