Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortamasmeszaros <meszaros.q@gmail.com>2020-01-16 17:38:59 +0300
committertamasmeszaros <meszaros.q@gmail.com>2020-01-16 17:38:59 +0300
commit70ecb634b7e6bd29cf69b791abf92f3b819a5301 (patch)
treebb49e8c74ade369dc4ee43a1e90a0c915052744e /sandboxes
parentea6844c31da7f31980cc3265e8d170dc8dd5608b (diff)
fix gui artifacts on Windows
Diffstat (limited to 'sandboxes')
-rw-r--r--sandboxes/opencsg/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sandboxes/opencsg/main.cpp b/sandboxes/opencsg/main.cpp
index ec6c01789..adf9cc457 100644
--- a/sandboxes/opencsg/main.cpp
+++ b/sandboxes/opencsg/main.cpp
@@ -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();