X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctsim%2Fscanner.cpp;h=bb7a7d84cbb4d3bd96b2c1b6a4d3cd383d30c312;hp=7d95afd642506bb5eac5f031c69a56fabc6c1b36;hb=43259365c0fa2788f15e1100491271dd910f5a6f;hpb=4d3663b733242615ba3c5323f7105ef895b3c8bf diff --git a/libctsim/scanner.cpp b/libctsim/scanner.cpp index 7d95afd..bb7a7d8 100644 --- a/libctsim/scanner.cpp +++ b/libctsim/scanner.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: scanner.cpp,v 1.14 2000/09/02 05:10:39 kevin Exp $ +** $Id: scanner.cpp,v 1.15 2000/09/07 14:29:05 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 @@ -504,7 +504,11 @@ Scanner::traceShowParam (const char *szLabel, const char *fmt, int row, int colo { va_list arg; va_start(arg, color); +#ifdef HAVE_SGP traceShowParamRasterOp (RO_COPY, szLabel, fmt, row, color, arg); +#else + traceShowParamRasterOp (0, szLabel, fmt, row, color, arg); +#endif va_end(arg); } @@ -513,7 +517,11 @@ Scanner::traceShowParamXOR (const char *szLabel, const char *fmt, int row, int c { va_list arg; va_start(arg, color); +#ifdef HAVE_SGP traceShowParamRasterOp (RO_XOR, szLabel, fmt, row, color, arg); +#else + traceShowParamRasterOp (0, szLabel, fmt, row, color, arg); +#endif va_end(arg); } @@ -528,6 +536,7 @@ Scanner::traceShowParamRasterOp (int iRasterOp, const char *szLabel, const char // cio_set_text_clr (color - 8, 0); // cio_set_text_clr (color, 0); +#ifdef HAVE_SGP if (m_pSGP) { m_pSGP->setRasterOp (iRasterOp); double dYPos = m_dYMaxWin - (row * m_dTextHeight); @@ -537,11 +546,13 @@ Scanner::traceShowParamRasterOp (int iRasterOp, const char *szLabel, const char double dValueOffset = (m_dXMaxWin - m_dXMinWin) / 4; m_pSGP->moveAbs (m_dXMinWin + dValueOffset, dYPos); m_pSGP->drawText (szValue); - } else { - cio_put_str (szLabel); - cio_put_str (szValue); - cio_put_str ("\n"); - } + } else +#endif + { + cio_put_str (szLabel); + cio_put_str (szValue); + cio_put_str ("\n"); + } }