mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-04-07 02:26:29 +02:00
Fixing refresh problem in some systems 2
This commit is contained in:
parent
bee2a50f62
commit
4b8d2db4ba
1 changed files with 1 additions and 0 deletions
|
@ -82,6 +82,7 @@ void BoardCanvas::OnPaint(wxPaintEvent &event) {
|
||||||
if (boardY > canvas_size.y)
|
if (boardY > canvas_size.y)
|
||||||
boardY = 0;
|
boardY = 0;
|
||||||
wxMemoryDC memDC(*adata.buffer);
|
wxMemoryDC memDC(*adata.buffer);
|
||||||
|
memDC.SetBackground(*wxWHITE_BRUSH);
|
||||||
memDC.Clear();
|
memDC.Clear();
|
||||||
DrawBoard(memDC);
|
DrawBoard(memDC);
|
||||||
dc.Blit(0,0,canvas_size.x,canvas_size.y,(wxDC*)&memDC,0,0);
|
dc.Blit(0,0,canvas_size.x,canvas_size.y,(wxDC*)&memDC,0,0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue