| 259 | } |
| 260 | |
| 261 | void CViewerPropDlg::UpdateOrientation() { |
| 262 | char buf[10]; |
| 263 | angvec angs; |
| 264 | |
| 265 | vm_ExtractAnglesFromMatrix(&angs, &Viewer_object->orient); |
| 266 | |
| 267 | sprintf(buf, "%d", (int)angs.p * 360 / 65536); |
| 268 | m_PitchEdit.SetWindowText(buf); |
| 269 | |
| 270 | sprintf(buf, "%d", (int)angs.h * 360 / 65536); |
| 271 | m_HeadingEdit.SetWindowText(buf); |
| 272 | |
| 273 | sprintf(buf, "%d", (int)angs.b * 360 / 65536); |
| 274 | m_BankEdit.SetWindowText(buf); |
| 275 | } |
| 276 | |
| 277 | void CViewerPropDlg::UpdatePosition() { |
| 278 | char buf[10]; |
no test coverage detected