darker
2025-01-16 393f5685448eab573f2c1f15f0725e49ffea8d4b
SourceCode/Bond/Servo/ServoGraph.cpp
@@ -627,3 +627,21 @@
      SendMessage(m_hWndTooltip, TTM_ADDTOOL, 0, (LPARAM)(LPTOOLINFO)&tti);
   }
}
void CServoGraph::UpdateImageCoordinates(int id, int newX, int newY)
{
   IMAGE* pImage = GetImage(id);
   if (pImage != nullptr) {
      pImage->x = newX;
      pImage->y = newY;
   }
}
void CServoGraph::UpdateIndicateBoxCoordinates(int id, int newX, int newY)
{
   INDICATEBOX* pIndicateBox = GetIndicateBox(id);
   if (pIndicateBox != nullptr) {
      pIndicateBox->x = newX;
      pIndicateBox->y = newY;
   }
}