Fixing refresh problem in some systems

This commit is contained in:
Loic Guegan 2023-01-04 17:07:20 +01:00
parent d9a340d392
commit bee2a50f62

View file

@ -68,7 +68,8 @@ BoardCanvas::BoardCanvas(wxFrame *parent, std::uint32_t square_width,
void BoardCanvas::OnPaint(wxPaintEvent &event) {
wxBufferedPaintDC dc(this);
dc.SetBackground(*wxWHITE_BRUSH);
dc.Clear();
if(!adata.reuseBuffer){
// Setting up required attributes
REFRESH_MOUSE_LOCATION();