diff options
Diffstat (limited to 'src/game_tab/left_panel')
| -rw-r--r-- | src/game_tab/left_panel/board/BoardCanvas.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/game_tab/left_panel/board/BoardCanvas.cpp b/src/game_tab/left_panel/board/BoardCanvas.cpp index 7cca378..0593cde 100644 --- a/src/game_tab/left_panel/board/BoardCanvas.cpp +++ b/src/game_tab/left_panel/board/BoardCanvas.cpp @@ -243,17 +243,17 @@ void BoardCanvas::DrawBoard(wxDC &dc) { type=s[2]; // Default highlight (type='a' or something else not supported) dc.SetPen(wxNullPen); - dc.SetBrush(wxColour(255,0,0,110)); + dc.SetBrush(wxColour(255, 102, 122)); if(type=='b') - dc.SetBrush(wxColour(0,255,0,110)); + dc.SetBrush(wxColour(120, 255, 102)); else if(type=='c') - dc.SetBrush(wxColour(0,0,255,110)); + dc.SetBrush(wxColour(102, 196, 255)); else if(type=='d') - dc.SetBrush(wxColour(255,0,0,50)); + dc.SetBrush(wxColour(255, 204, 213)); else if(type=='e') - dc.SetBrush(wxColour(0,255,0,50)); + dc.SetBrush(wxColour(220, 255, 204)); else if(type=='f') - dc.SetBrush(wxColour(0,0,255,50)); + dc.SetBrush(wxColour(204, 231, 255)); dc.DrawRectangle(wxRect(x,y,square_width,square_width)); } } @@ -505,7 +505,7 @@ void BoardCanvas::MouseEvent(wxMouseEvent &event) { if(std::count(squares_hl.begin(), squares_hl.end(), src)){ squares_hl.erase(std::remove(squares_hl.begin(), squares_hl.end(), src), squares_hl.end()); }else{ - squares_hl.push_back(src); + squares_hl.push_back(src+"f"); wxLogDebug("Highlight square %s",src); } } |
