|
|
@ -27,19 +27,6 @@ |
|
|
|
#include <gal/hidpi_gl_canvas.h>
|
|
|
|
|
|
|
|
|
|
|
|
HIDPI_GL_CANVAS::HIDPI_GL_CANVAS( wxWindow *parent, |
|
|
|
const wxGLAttributes& dispAttrs, |
|
|
|
wxWindowID id, |
|
|
|
const wxPoint& pos, |
|
|
|
const wxSize& size, |
|
|
|
long style, |
|
|
|
const wxString& name, |
|
|
|
const wxPalette& palette ) : |
|
|
|
wxGLCanvas( parent, dispAttrs, id, pos, size, style, name, palette ) |
|
|
|
{ |
|
|
|
initialize(); |
|
|
|
} |
|
|
|
|
|
|
|
HIDPI_GL_CANVAS::HIDPI_GL_CANVAS( wxWindow *parent, |
|
|
|
wxWindowID id, |
|
|
|
const int *attribList, |
|
|
@ -50,7 +37,9 @@ HIDPI_GL_CANVAS::HIDPI_GL_CANVAS( wxWindow *parent, |
|
|
|
const wxPalette& palette ) : |
|
|
|
wxGLCanvas( parent, id, attribList, pos, size, style, name, palette ) |
|
|
|
{ |
|
|
|
initialize(); |
|
|
|
#ifdef RETINA_OPENGL_PATCH
|
|
|
|
SetViewWantsBestResolution( true ); |
|
|
|
#endif
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -77,11 +66,3 @@ float HIDPI_GL_CANVAS::GetBackingScaleFactor() const |
|
|
|
return 1.0f; |
|
|
|
#endif
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void HIDPI_GL_CANVAS::initialize() |
|
|
|
{ |
|
|
|
#ifdef RETINA_OPENGL_PATCH
|
|
|
|
SetViewWantsBestResolution( true ); |
|
|
|
#endif
|
|
|
|
} |