Fixed compilation with wxWidgets 3.0
This commit is contained in:
parent
1ca872f81e
commit
8bf0f75e83
2 changed files with 3 additions and 1 deletions
|
@ -22,6 +22,8 @@
|
|||
#include <GL/glew.h>
|
||||
#include <boost/log/trivial.hpp>
|
||||
#include <boost/nowide/cstdio.hpp>
|
||||
#include <wx/progdlg.h>
|
||||
#include <wx/numformatter.h>
|
||||
|
||||
#include <array>
|
||||
#include <algorithm>
|
||||
|
|
|
@ -116,7 +116,7 @@ public:
|
|||
this->Bind(EVT_DPI_CHANGED_SLICER, [this](const DpiChangedEvent& evt) {
|
||||
m_scale_factor = (float)evt.dpi / (float)DPI_DEFAULT;
|
||||
|
||||
m_new_font_point_size = get_default_font_for_dpi(evt.dpi).GetPointSize();
|
||||
m_new_font_point_size = get_default_font_for_dpi(this, evt.dpi).GetPointSize();
|
||||
|
||||
if (!m_can_rescale)
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue