** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: scanner.cpp,v 1.17 2000/12/06 01:46:43 kevin Exp $
+** $Id: scanner.cpp,v 1.19 2000/12/16 02:44:26 kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
if (pSGP && m_trace >= Trace::TRACE_PHANTOM) {
m_pSGP = pSGP;
m_pSGP->eraseWindow();
- double dWindowSize = max(m_detLen, m_dFocalLength * 2) * SQRT2;
+ double dWindowSize = dmax (m_detLen, m_dFocalLength * 2) * SQRT2;
double dHalfWindowSize = dWindowSize / 2;
m_dXMinWin = m_dXCenter - dHalfWindowSize;
m_dXMaxWin = m_dXCenter + dHalfWindowSize;
#ifdef MSVC
vsprintf (szValue, fmt, args);
#else
- vnsprintf (szValue, sizeof(szValue), fmt, args);
+ vsnprintf (szValue, sizeof(szValue), fmt, args);
#endif
// cio_set_cpos (raysum_trace_menu_column, row);