Ticket #15700: window.patch

File window.patch, 475 bytes (added by koichi, 6 years ago)

Enable retina resolution in OpenGL canvas

  • src/osx/cocoa/window.mm

     
    28662866{
    28672867    NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ;
    28682868    wxNSView* v = [[wxNSView alloc] initWithFrame:r];
     2869    [v setWantsBestResolutionOpenGLSurface:YES];
    28692870
    28702871    wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v, false, true );
    28712872    return c;