mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-24 07:06:36 +00:00
Add text anti-aliasing, disable arcade mode
This commit is contained in:
@@ -8,6 +8,8 @@ namespace PortabilityLayer
|
||||
{
|
||||
uint8_t r, g, b, a;
|
||||
|
||||
bool operator==(const RGBAColor &other) const;
|
||||
bool operator!=(const RGBAColor &other) const;
|
||||
static RGBAColor Create(uint8_t r, uint8_t g, uint8_t b, uint8_t a);
|
||||
};
|
||||
|
||||
@@ -20,5 +22,15 @@ namespace PortabilityLayer
|
||||
color.a = a;
|
||||
|
||||
return color;
|
||||
}
|
||||
|
||||
inline bool RGBAColor::operator==(const RGBAColor &other) const
|
||||
{
|
||||
return this->r == other.r && this->g == other.g && this->b == other.b && this->a == other.a;
|
||||
}
|
||||
|
||||
inline bool RGBAColor::operator!=(const RGBAColor &other) const
|
||||
{
|
||||
return !((*this) == other);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user