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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to