fix flicker on windows (#523)

This commit is contained in:
goeiecool9999 2022-11-21 21:45:46 +01:00 committed by GitHub
parent f4c2d16a3a
commit 8ff668a303
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@
#include <wx/msgdlg.h> #include <wx/msgdlg.h>
VulkanCanvas::VulkanCanvas(wxWindow* parent, const wxSize& size, bool is_main_window) VulkanCanvas::VulkanCanvas(wxWindow* parent, const wxSize& size, bool is_main_window)
: IRenderCanvas(is_main_window), wxWindow(parent, wxID_ANY, wxDefaultPosition, size, wxFULL_REPAINT_ON_RESIZE | wxWANTS_CHARS) : IRenderCanvas(is_main_window), wxWindow(parent, wxID_ANY, wxDefaultPosition, size, wxNO_FULL_REPAINT_ON_RESIZE | wxWANTS_CHARS)
{ {
Bind(wxEVT_PAINT, &VulkanCanvas::OnPaint, this); Bind(wxEVT_PAINT, &VulkanCanvas::OnPaint, this);
Bind(wxEVT_SIZE, &VulkanCanvas::OnResize, this); Bind(wxEVT_SIZE, &VulkanCanvas::OnResize, this);