Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace images in wxRendererMac::DrawTitleBarBitmap() with drawing code. #104

Merged
merged 3 commits into from Jan 5, 2016

Commits on Jan 5, 2016

  1. Replace images in wxRendererMac::DrawTitleBarBitmap() with drawing code.

    The low resolution (14x14) bitmaps scaled badly on high resolution displays. A close button suitable for usage inside a window (like wxInfoBar) is not available via HI theme drawing methods. This drawing code tries to emulate a close button, as close as possible to the one found in the Xcode 6+ welcome window.
    TcT2k committed Jan 5, 2016
    Configuration menu
    Copy the full SHA
    e0cb697 View commit details
    Browse the repository at this point in the history
  2. Handle high resolution displays in wxBitmapButtonBase::NewCloseButton().

    Bitmap for the close button is scaled based on GetContentScaleFactor(). On OS X the resulting bitmap has to use the correct scaling factor in order to be displayed correctly on the button when using a high resolution display.
    TcT2k committed Jan 5, 2016
    Configuration menu
    Copy the full SHA
    d4a2f15 View commit details
    Browse the repository at this point in the history
  3. Document wxBitmap::CreateScaled() and wxBitmap::Create() overload.

    The two methods were previously undocumented but might be of interest
    to user code for high DPI display compatibility.
    TcT2k committed Jan 5, 2016
    Configuration menu
    Copy the full SHA
    08dc940 View commit details
    Browse the repository at this point in the history