Ticket #15700: glcanvas.patch

File glcanvas.patch, 459 bytes (added by koichi, 6 years ago)

Enable retina resolution in OpenGL canvas

  • src/osx/cocoa/glcanvas.mm

     
    267267   
    268268    if ( !wxWindow::Create(parent, id, pos, size, style, name) )
    269269        return false;
     270    NSView* sv = GetHandle() ;
     271    [sv setWantsBestResolutionOpenGLSurface:YES];
    270272
    271273/*
    272274    NSRect r = wxOSXGetFrameForControl( this, pos , size ) ;