Fixed assert message after wxAutoBufferedPaintDC and warnings in 2DBed.cpp

This commit is contained in:
YuSanka 2018-11-29 15:42:33 +01:00
parent 4e4760bb82
commit 4bb771683d
2 changed files with 12 additions and 11 deletions

View file

@ -28,6 +28,7 @@ public:
Bed_2D(wxWindow* parent)
{
Create(parent, wxID_ANY, wxDefaultPosition, wxSize(250, -1), wxTAB_TRAVERSAL);
SetBackgroundStyle(wxBG_STYLE_PAINT); // to avoid assert message after wxAutoBufferedPaintDC
// m_user_drawn_background = $^O ne 'darwin';
#ifdef __APPLE__
m_user_drawn_background = false;