diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-19 19:03:33 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-19 19:03:33 +0000 |
commit | e69e8b1d09fb579316595b4e6a850e717358a8b1 (patch) | |
tree | a24fc20865f65772f530d16177520190594ffdd2 /ksvg/impl/SVGColorProfileElementImpl.cc | |
parent | eecec9afb81fdebb0f22e9da22635874c403f854 (diff) | |
download | tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip |
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksvg/impl/SVGColorProfileElementImpl.cc')
-rw-r--r-- | ksvg/impl/SVGColorProfileElementImpl.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ksvg/impl/SVGColorProfileElementImpl.cc b/ksvg/impl/SVGColorProfileElementImpl.cc index 385a836b..7890f07e 100644 --- a/ksvg/impl/SVGColorProfileElementImpl.cc +++ b/ksvg/impl/SVGColorProfileElementImpl.cc @@ -229,12 +229,12 @@ void SVGColorProfileElementImpl::closeColorProfile() cmsCloseProfile(m_hInput); } -QRgb SVGColorProfileElementImpl::correctPixel(float r, float g, float b) +TQRgb SVGColorProfileElementImpl::correctPixel(float r, float g, float b) { if(!m_loaded) { if(!loadColorProfile()) - return qRgb(0, 0, 0); + return tqRgb(0, 0, 0); } unsigned short input[MAXCHANNELS], output[MAXCHANNELS]; @@ -246,9 +246,9 @@ QRgb SVGColorProfileElementImpl::correctPixel(float r, float g, float b) cmsDoTransform(m_hTrans, input, output, 1); if(m_outputColorSpace == icSigRgbData) - return qRgb(output[0] / 257, output[1] / 257, output[2] / 257); + return tqRgb(output[0] / 257, output[1] / 257, output[2] / 257); - return qRgb(0, 0, 0); + return tqRgb(0, 0, 0); } TQImage *SVGColorProfileElementImpl::correctImage(TQImage *input) @@ -260,8 +260,8 @@ TQImage *SVGColorProfileElementImpl::correctImage(TQImage *input) { for(int x = 0; x < input->width(); x++) { - QRgb pixel = input->pixel(x, y); - input->setPixel(x, y, correctPixel(qRed(pixel), qGreen(pixel), qBlue(pixel))); + TQRgb pixel = input->pixel(x, y); + input->setPixel(x, y, correctPixel(tqRed(pixel), tqGreen(pixel), tqBlue(pixel))); } } |