Performance fix of rendering of the parameter tabs on Windows:

Disabled Windows Vista themes for the wxNotebook.
This commit is contained in:
bubnikv 2019-03-18 20:54:01 +01:00
parent b5894d334c
commit a90d5c8a28
5 changed files with 34 additions and 3 deletions

View file

@ -78,6 +78,7 @@ class GUI_App : public wxApp
wxFont m_small_font;
wxFont m_bold_font;
wxFont m_normal_font;
size_t m_em_unit; // width of a "m"-symbol in pixels for current system font
// Note: for 100% Scale m_em_unit = 10 -> it's a good enough coefficient for a size setting of controls
@ -106,6 +107,7 @@ public:
const wxFont& small_font() { return m_small_font; }
const wxFont& bold_font() { return m_bold_font; }
const wxFont& normal_font() { return m_normal_font; }
size_t em_unit() const { return m_em_unit; }
void set_em_unit(const size_t em_unit) { m_em_unit = em_unit; }