corrected coordinates display of status bar's

This commit is contained in:
Zero Fanker 2025-01-06 23:13:34 -05:00
parent 770b1ac36a
commit 5bf28965e8

View file

@ -1585,22 +1585,13 @@ void CIsoView::OnMouseMove(UINT nFlags, CPoint point)
// display the coordinates
char c[50];
// display the coordinates
CString cap;
itoa(x, c, 10);
cap += c;
cap += " / ";
itoa(y, c, 10);
cap += c;
cap += " - ";
itoa(Map->GetHeightAt(x + y * Map->GetIsoSize()), c, 10);
cap += c;
cap.Format("XY: %d, %d H: %d", y, x, Map->GetHeightAt(x + y * Map->GetIsoSize()));
CStatusBarCtrl& stat = ((CMyViewFrame*)owner)->m_statbar.GetStatusBarCtrl();
stat.SetText(cap, 1, 0);
// drag
if (m_drag && AD.mode == 0) {
RedrawWindow(NULL, NULL, RDW_INVALIDATE);