Fixed compilation with wxWidgets 3.0

This commit is contained in:
Lukas Matena 2020-09-30 17:33:08 +02:00
parent 1ca872f81e
commit 8bf0f75e83
2 changed files with 3 additions and 1 deletions

View file

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

View file

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