Enable built-in DPI changed event handler when building against wxWidgets 3.1.3

This commit is contained in:
enricoturri1966 committed 2020-06-15 16:20:34 +02:00
1 parent 76d9f0f509
commit dcf68aefd7
3 files changed
+39 -2

No files matched your search

+4
View File
@@ -537,7 +537,11 @@ bool MainFrame::can_reslice() const
void MainFrame::on_dpi_changed(const wxRect &suggested_rect)
{
#if ENABLE_WX_3_1_3_DPI_CHANGED_EVENT
wxGetApp().update_fonts(this);
#else
wxGetApp().update_fonts();
#endif // ENABLE_WX_3_1_3_DPI_CHANGED_EVENT
this->SetFont(this->normal_font());
/* Load default preset bitmaps before a tabpanel initialization,