Fixing refresh problem in some systems 2

This commit is contained in:
Loic Guegan 2023-01-04 17:53:36 +01:00
parent bee2a50f62
commit 4b8d2db4ba

View file

@ -82,6 +82,7 @@ void BoardCanvas::OnPaint(wxPaintEvent &event) {
if (boardY > canvas_size.y)
boardY = 0;
wxMemoryDC memDC(*adata.buffer);
memDC.SetBackground(*wxWHITE_BRUSH);
memDC.Clear();
DrawBoard(memDC);
dc.Blit(0,0,canvas_size.x,canvas_size.y,(wxDC*)&memDC,0,0);