diff --git a/sandboxes/opencsg/main.cpp b/sandboxes/opencsg/main.cpp index c1bda6b39..3922706e7 100644 --- a/sandboxes/opencsg/main.cpp +++ b/sandboxes/opencsg/main.cpp @@ -110,11 +110,9 @@ public: m_display->repaint(); }); - Bind(wxEVT_SIZE, [this](wxSizeEvent &) { + Bind(wxEVT_SIZE, [this](wxSizeEvent &) { const wxSize ClientSize = GetClientSize(); - m_display->set_screen_size(ClientSize.x, ClientSize.y); - m_display->repaint(); }); }