diff options
Diffstat (limited to 'src/game_tab/left_panel/board/BoardCanvas.hpp')
| -rw-r--r-- | src/game_tab/left_panel/board/BoardCanvas.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game_tab/left_panel/board/BoardCanvas.hpp b/src/game_tab/left_panel/board/BoardCanvas.hpp index 83c960a..7645414 100644 --- a/src/game_tab/left_panel/board/BoardCanvas.hpp +++ b/src/game_tab/left_panel/board/BoardCanvas.hpp @@ -7,6 +7,7 @@ #include <utility> #include <vector> #include <wx/artprov.h> +#include <wx/dcbuffer.h> // Local events wxDECLARE_EVENT(PLAY_MOVE_EVENT, wxCommandEvent); @@ -56,7 +57,7 @@ public: BoardCanvas(wxFrame *parent,std::uint32_t square_width, bool frozen); ~BoardCanvas(); void ApplyPreferences(); - void DrawBoard(wxPaintDC &dc); + void DrawBoard(wxBufferedPaintDC &dc); void OnPaint(wxPaintEvent &event); void OnKeyEvent(wxKeyEvent &event); void MouseEvent(wxMouseEvent &event); |
