buggy implementation of QskRgbValue::toTransparent fixed
This commit is contained in:
parent
b1a137100a
commit
f2f2724ea5
@ -439,12 +439,12 @@ QSK_RGB_VALUES
|
||||
|
||||
inline QColor toTransparent( const QColor& c1, int alpha = 0 )
|
||||
{
|
||||
return QColor::fromRgba( ( c1.rgb() & ColorMask ) | ( alpha & AlphaMask ) );
|
||||
return QColor::fromRgba( ( c1.rgb() & ColorMask ) | ( ( alpha & 0xffu ) << 24 ) );
|
||||
}
|
||||
|
||||
inline QRgb toTransparent( QRgb rgb, int alpha = 0 )
|
||||
{
|
||||
return ( rgb & ColorMask ) | ( alpha & AlphaMask );
|
||||
return ( rgb & ColorMask ) | ( ( alpha & 0xffu ) << 24 );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user