mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-07-18 03:54:18 -04:00
No & is a bit faster here
This commit is contained in:
@ -276,7 +276,7 @@ const XCFImageFormat::LayerModes XCFImageFormat::layer_modes[] = {
|
||||
};
|
||||
|
||||
//! Change a QRgb value's alpha only.
|
||||
inline QRgb qRgba(const QRgb &rgb, int a)
|
||||
inline QRgb qRgba(const QRgb rgb, int a)
|
||||
{
|
||||
return ((a & 0xff) << 24 | (rgb & RGB_MASK));
|
||||
}
|
||||
|
Reference in New Issue
Block a user