diff options
Diffstat (limited to 'kimgio/rgb.cpp')
-rw-r--r-- | kimgio/rgb.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kimgio/rgb.cpp b/kimgio/rgb.cpp index cf1f2331a..bdda0959a 100644 --- a/kimgio/rgb.cpp +++ b/kimgio/rgb.cpp @@ -120,7 +120,7 @@ bool SGIImage::getRow(uchar *dest) bool SGIImage::readData(TQImage& img) { - QRgb *c; + TQRgb *c; TQ_UINT32 *start = m_starttab; TQByteArray lguard(m_xsize); uchar *line = (uchar *)lguard.data(); @@ -134,7 +134,7 @@ bool SGIImage::readData(TQImage& img) m_pos = m_data.begin() + *start++; if (!getRow(line)) return false; - c = (QRgb *)img.scanLine(m_ysize - y - 1); + c = (TQRgb *)img.scanLine(m_ysize - y - 1); for (x = 0; x < m_xsize; x++, c++) *c = tqRgb(line[x], line[x], line[x]); } @@ -148,7 +148,7 @@ bool SGIImage::readData(TQImage& img) m_pos = m_data.begin() + *start++; if (!getRow(line)) return false; - c = (QRgb *)img.scanLine(m_ysize - y - 1); + c = (TQRgb *)img.scanLine(m_ysize - y - 1); for (x = 0; x < m_xsize; x++, c++) *c = tqRgb(tqRed(*c), line[x], line[x]); } @@ -158,7 +158,7 @@ bool SGIImage::readData(TQImage& img) m_pos = m_data.begin() + *start++; if (!getRow(line)) return false; - c = (QRgb *)img.scanLine(m_ysize - y - 1); + c = (TQRgb *)img.scanLine(m_ysize - y - 1); for (x = 0; x < m_xsize; x++, c++) *c = tqRgb(tqRed(*c), tqGreen(*c), line[x]); } @@ -172,7 +172,7 @@ bool SGIImage::readData(TQImage& img) m_pos = m_data.begin() + *start++; if (!getRow(line)) return false; - c = (QRgb *)img.scanLine(m_ysize - y - 1); + c = (TQRgb *)img.scanLine(m_ysize - y - 1); for (x = 0; x < m_xsize; x++, c++) *c = tqRgba(tqRed(*c), tqGreen(*c), tqBlue(*c), line[x]); } @@ -394,12 +394,12 @@ bool SGIImage::scanData(const TQImage& img) TQCString bufguard(m_xsize); uchar *line = (uchar *)lineguard.data(); uchar *buf = (uchar *)bufguard.data(); - QRgb *c; + TQRgb *c; unsigned x, y; uint len; for (y = 0; y < m_ysize; y++) { - c = reinterpret_cast<QRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); + c = reinterpret_cast<TQRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); for (x = 0; x < m_xsize; x++) buf[x] = intensity(tqRed(*c++)); len = compact(line, buf); @@ -411,7 +411,7 @@ bool SGIImage::scanData(const TQImage& img) if (m_zsize != 2) { for (y = 0; y < m_ysize; y++) { - c = reinterpret_cast<QRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); + c = reinterpret_cast<TQRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); for (x = 0; x < m_xsize; x++) buf[x] = intensity(tqGreen(*c++)); len = compact(line, buf); @@ -419,7 +419,7 @@ bool SGIImage::scanData(const TQImage& img) } for (y = 0; y < m_ysize; y++) { - c = reinterpret_cast<QRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); + c = reinterpret_cast<TQRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); for (x = 0; x < m_xsize; x++) buf[x] = intensity(tqBlue(*c++)); len = compact(line, buf); @@ -431,7 +431,7 @@ bool SGIImage::scanData(const TQImage& img) } for (y = 0; y < m_ysize; y++) { - c = reinterpret_cast<QRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); + c = reinterpret_cast<TQRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); for (x = 0; x < m_xsize; x++) buf[x] = intensity(tqAlpha(*c++)); len = compact(line, buf); @@ -494,11 +494,11 @@ void SGIImage::writeVerbatim(const TQImage& img) kdDebug(399) << "writing verbatim data" << endl; writeHeader(); - QRgb *c; + TQRgb *c; unsigned x, y; for (y = 0; y < m_ysize; y++) { - c = reinterpret_cast<QRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); + c = reinterpret_cast<TQRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); for (x = 0; x < m_xsize; x++) m_stream << TQ_UINT8(tqRed(*c++)); } @@ -508,13 +508,13 @@ void SGIImage::writeVerbatim(const TQImage& img) if (m_zsize != 2) { for (y = 0; y < m_ysize; y++) { - c = reinterpret_cast<QRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); + c = reinterpret_cast<TQRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); for (x = 0; x < m_xsize; x++) m_stream << TQ_UINT8(tqGreen(*c++)); } for (y = 0; y < m_ysize; y++) { - c = reinterpret_cast<QRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); + c = reinterpret_cast<TQRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); for (x = 0; x < m_xsize; x++) m_stream << TQ_UINT8(tqBlue(*c++)); } @@ -524,7 +524,7 @@ void SGIImage::writeVerbatim(const TQImage& img) } for (y = 0; y < m_ysize; y++) { - c = reinterpret_cast<QRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); + c = reinterpret_cast<TQRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); for (x = 0; x < m_xsize; x++) m_stream << TQ_UINT8(tqAlpha(*c++)); } |