diff options
Diffstat (limited to 'noatun/modules/kjofol-skin/helpers.cpp')
-rw-r--r-- | noatun/modules/kjofol-skin/helpers.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/noatun/modules/kjofol-skin/helpers.cpp b/noatun/modules/kjofol-skin/helpers.cpp index 0a2a9e67..473c0e80 100644 --- a/noatun/modules/kjofol-skin/helpers.cpp +++ b/noatun/modules/kjofol-skin/helpers.cpp @@ -9,22 +9,22 @@ #ifndef KJHELPERS_CPP #define KJHELPERS_CPP -static int grayRgb(QRgb r) +static int grayRgb(TQRgb r) { - return qGray(qRed(r), qGreen(r), qBlue(r)); + return tqGray(tqRed(r), tqGreen(r), tqBlue(r)); } -static int isGray(QRgb r) +static int isGray(TQRgb r) { // this is more tolerant than the old version // i.e. RGB 162 163 162 is treated as gray too // too many broken skins around having such colors -// cerr << "r("<<qRed(r)<<","<<qGreen(r)<<","<<qBlue(r)<<")"<<endl; +// cerr << "r("<<tqRed(r)<<","<<tqGreen(r)<<","<<tqBlue(r)<<")"<<endl; - if ( (qRed(r)==qGreen(r)) || (qRed(r)+1==qGreen(r)) || (qRed(r)-1==qGreen(r))) + if ( (tqRed(r)==tqGreen(r)) || (tqRed(r)+1==tqGreen(r)) || (tqRed(r)-1==tqGreen(r))) { - if ( (qRed(r)==qBlue(r)) || (qRed(r)+1==qBlue(r)) || (qRed(r)-1==qBlue(r))) + if ( (tqRed(r)==tqBlue(r)) || (tqRed(r)+1==tqBlue(r)) || (tqRed(r)-1==tqBlue(r))) { // looks a bit like gray, so return true return (1); @@ -35,7 +35,7 @@ static int isGray(QRgb r) /* // mETz: wrong braces in the code below ?? - return (qRed(r)==qGreen(r)) && (qRed(r) == qBlue(r)); + return (tqRed(r)==tqGreen(r)) && (tqRed(r) == tqBlue(r)); */ } |