Home
last modified time | relevance | path

Searched refs:alphaShift (Results 1 – 2 of 2) sorted by relevance

/haiku/src/servers/app/drawing/
H A DOverlay.cpp236 uint8 colorShift = 0, greenShift = 0, alphaShift = 0; in SetColorSpace() local
242 alphaShift = 7; in SetColorSpace()
247 alphaShift = 8; in SetColorSpace()
254 fWindow.alpha.value = colorKey.alpha >> alphaShift; in SetColorSpace()
258 fWindow.alpha.mask = 0xff >> alphaShift; in SetColorSpace()
/haiku/src/kits/interface/
H A DColorConversion.cpp591 int32 alphaShift, int32 alphaBits, uint32 redMask, uint32 greenMask, in ConvertBits64To32() argument
657 alphaShift -= 8; in ConvertBits64To32()
695 if (alphaShift > 0) in ConvertBits64To32()
696 result |= ((source >> alphaShift) & alphaMask); in ConvertBits64To32()
697 else if (alphaShift < 0) in ConvertBits64To32()
698 result |= ((source << -alphaShift) & alphaMask); in ConvertBits64To32()
730 int32 alphaShift, int32 alphaBits, uint32 redMask, uint32 greenMask, in ConvertBits() argument
856 if (alphaShift > 0) in ConvertBits()
857 result |= ((source >> alphaShift) & alphaMask); in ConvertBits()
858 else if (alphaShift < 0) in ConvertBits()
[all …]