diff -r 5dc02b23752f -r 3e2da88830cd src/gui/painting/qrgb.h --- a/src/gui/painting/qrgb.h Tue Jul 06 15:10:48 2010 +0300 +++ b/src/gui/painting/qrgb.h Wed Aug 18 10:37:55 2010 +0300 @@ -64,7 +64,7 @@ { return (rgb & 0xff); } Q_GUI_EXPORT_INLINE int qAlpha(QRgb rgb) // get alpha part of RGBA -{ return ((rgb >> 24) & 0xff); } +{ return rgb >> 24; } Q_GUI_EXPORT_INLINE QRgb qRgb(int r, int g, int b)// set RGB value { return (0xffu << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff); }