mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-04-09 22:56:53 +00:00
Fixing refresh problem in some systems
This commit is contained in:
parent
d9a340d392
commit
bee2a50f62
1 changed files with 2 additions and 1 deletions
|
@ -68,6 +68,7 @@ BoardCanvas::BoardCanvas(wxFrame *parent, std::uint32_t square_width,
|
||||||
void BoardCanvas::OnPaint(wxPaintEvent &event) {
|
void BoardCanvas::OnPaint(wxPaintEvent &event) {
|
||||||
wxBufferedPaintDC dc(this);
|
wxBufferedPaintDC dc(this);
|
||||||
dc.SetBackground(*wxWHITE_BRUSH);
|
dc.SetBackground(*wxWHITE_BRUSH);
|
||||||
|
dc.Clear();
|
||||||
|
|
||||||
if(!adata.reuseBuffer){
|
if(!adata.reuseBuffer){
|
||||||
// Setting up required attributes
|
// Setting up required attributes
|
||||||
|
|
Loading…
Add table
Reference in a new issue