diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-17 08:33:32 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-17 08:33:32 +0100 |
| commit | 3e818c0f0ca741fe8404e841a93b1401aacc4301 (patch) | |
| tree | b607ac09a553f909e0eb5fc56582351bcd1d99d6 /examples/wxWidgets/main.cpp | |
| parent | fbb36fc82e7d069cdc91831aba8ccbdf063d5187 (diff) | |
Improve editor move icons management
Diffstat (limited to 'examples/wxWidgets/main.cpp')
| -rw-r--r-- | examples/wxWidgets/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/wxWidgets/main.cpp b/examples/wxWidgets/main.cpp index 20e6d3f..99e8839 100644 --- a/examples/wxWidgets/main.cpp +++ b/examples/wxWidgets/main.cpp @@ -34,8 +34,8 @@ private: wxSize sz = GetClientSize(); CGEditor::status.CanvasWidth = sz.GetWidth(); CGEditor::status.CanvasHeight = sz.GetHeight(); - CGEditor::status.UseMoveImages = - false; // Piece image should be drawn before the move ? + CGEditor::status.UseMoveIcons = + true; // Piece image should be drawn before the move ? const wxPoint pt = wxGetMousePosition(); CGEditor::status.MouseX = pt.x - this->GetScreenPosition().x; @@ -133,7 +133,7 @@ private: dc->SetBrush(*wxLIGHT_GREY_BRUSH); dc->DrawRectangle(recToDraw); } - if (CGEditor::status.UseMoveImages) { + if (CGEditor::status.UseMoveIcons) { dc->DrawText(wxString(e.text), wxPoint(e.x, Middle(e).y)); } else { dc->DrawText(wxString(e.text), Middle(e)); |
