From 3e818c0f0ca741fe8404e841a93b1401aacc4301 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Thu, 17 Feb 2022 08:33:32 +0100 Subject: Improve editor move icons management --- examples/wxWidgets/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/wxWidgets') 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)); -- cgit v1.2.3