mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-04-06 01:56:28 +02: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,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();
|
||||
|
|
Loading…
Add table
Reference in a new issue