Skip to content

Commit

Permalink
fix gui artifacts on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tamasmeszaros committed Jan 16, 2020
1 parent ea6844c commit 70ecb63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sandboxes/opencsg/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ void MyFrame::activate_canvas_display()

m_canvas->Bind(wxEVT_PAINT, [this](wxPaintEvent &) {
// This is required even though dc is not used otherwise.
wxPaintDC dc(this);
wxPaintDC dc(m_canvas.get());
const wxSize csize = m_canvas->GetClientSize();
m_canvas->get_display()->set_screen_size(csize.x, csize.y);
m_canvas->get_display()->repaint();
Expand Down

0 comments on commit 70ecb63

Please sign in to comment.