Browse Source

Remove wx-3.1 only constructor from HIDPI_GL_CANVAS wrapper.

pull/5/merge
Bernhard Stegmaier 8 years ago
committed by Maciej Suminski
parent
commit
02d1b2611e
  1. 25
      common/gal/hidpi_gl_canvas.cpp
  2. 17
      include/gal/hidpi_gl_canvas.h

25
common/gal/hidpi_gl_canvas.cpp

@ -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
}

17
include/gal/hidpi_gl_canvas.h

@ -40,16 +40,6 @@
class HIDPI_GL_CANVAS : public wxGLCanvas
{
public:
// wxGLCanvas constructor
HIDPI_GL_CANVAS( wxWindow *parent,
const wxGLAttributes& dispAttrs,
wxWindowID id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
const wxString& name = wxGLCanvasName,
const wxPalette& palette = wxNullPalette );
// wxGLCanvas constructor
HIDPI_GL_CANVAS( wxWindow *parent,
wxWindowID id = wxID_ANY,
@ -66,13 +56,6 @@ public:
// wxGLCanvas override (with patch applied) or default value of 1.0
virtual float GetBackingScaleFactor() const;
private:
/**
* @brief Common initialization
*/
void initialize();
};
#endif // HIDPI_GL_CANVAS_H
Loading…
Cancel
Save