Fixed flashing

+ Adde experiments with FromDIP function
This commit is contained in:
YuSanka
2019-02-05 11:48:28 +01:00
parent 6c72fca113
commit 9c87288a6b
5 changed files with 5 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ namespace GUI {
Bed_2D::Bed_2D(wxWindow* parent) :
wxPanel(parent, wxID_ANY, wxDefaultPosition, wxSize(20 * wxGetApp().em_unit(), -1), wxTAB_TRAVERSAL)
wxPanel(parent, wxID_ANY, wxDefaultPosition, FromDIP(wxSize(250,-1))/*wxSize(20 * wxGetApp().em_unit(), -1)*/, wxTAB_TRAVERSAL)
{
SetBackgroundStyle(wxBG_STYLE_PAINT); // to avoid assert message after wxAutoBufferedPaintDC
#ifdef __APPLE__