mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-19 03:06:39 +00:00
os: add template specialization for alpha pixel
The specialization is needed for applying anti-aliased drawing operations on alpha channels.
This commit is contained in:
parent
b0935ef9b2
commit
cb72784717
@ -34,6 +34,12 @@ namespace Genode {
|
||||
res.pixel = p1.pixel + (((255 - p1.pixel)*alpha) >> 8);
|
||||
return res;
|
||||
}
|
||||
|
||||
template <>
|
||||
inline Pixel_alpha8 Pixel_alpha8::mix(Pixel_alpha8 p1, Pixel_alpha8 p2, int alpha)
|
||||
{
|
||||
return mix<Pixel_alpha8>(p1, p2, alpha);
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* _INCLUDE__OS__PIXEL_ALPHA8_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user