diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2020-06-10 09:35:32 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2020-06-10 09:35:32 -0300 |
commit | 196389a70ef3a03aa8764b9532812a17dd55014b (patch) | |
tree | 5fd95e9295ccb9e92a660e7864ce332480716009 /Project/WorkspaceDC.cpp | |
parent | 4fdcfe16959a610a928064df73281f509425cbbf (diff) | |
download | PSP.git-196389a70ef3a03aa8764b9532812a17dd55014b.tar.gz PSP.git-196389a70ef3a03aa8764b9532812a17dd55014b.tar.xz PSP.git-196389a70ef3a03aa8764b9532812a17dd55014b.zip |
Control editor DC fixes
Diffstat (limited to 'Project/WorkspaceDC.cpp')
-rw-r--r-- | Project/WorkspaceDC.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Project/WorkspaceDC.cpp b/Project/WorkspaceDC.cpp index 1333314..45ae29e 100644 --- a/Project/WorkspaceDC.cpp +++ b/Project/WorkspaceDC.cpp @@ -67,6 +67,7 @@ WorkspaceDC::WorkspaceDC(wxWindow* parent, wxString name, wxStatusBar* statusBar delete m_glCanvas; // Delete GLcanvas to allow drawing with wxDC m_glCanvas = nullptr; + m_glContext = nullptr; SetBackgroundColour(wxColour(255, 255, 255)); SetBackgroundStyle(wxBG_STYLE_PAINT); // To allow wxBufferedPaintDC works properly. Redraw(); @@ -120,10 +121,8 @@ void WorkspaceDC::OnPaint(wxPaintEvent& event) } // Selection rectangle - //dc.SetPen(wxPen(wxColour(0, 125, 255))); gc->SetPen(wxPen(wxColour(0, 125, 255, 255))); gc->SetBrush(wxBrush(wxColour(0, 125, 255, 125))); - //dc.SetBrush(wxBrush(wxColour(0, 125, 255, 125))); gc->DrawRectangle(m_selectionRect.m_x, m_selectionRect.m_y, m_selectionRect.m_width, m_selectionRect.m_height); delete gc; |