• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Odd bug in HIThemeDrawWindowFrame on a retina display
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: view content not tracking window size
  • Next by Date: Re: Showing Application Credits
  • Previous by thread: Re: view content not tracking window size
  • Next by thread: Re: Showing Application Credits
  • Index(es):
    • Date
    • Thread