Add text anti-aliasing, disable arcade mode

This commit is contained in:
elasota
2020-01-18 18:20:16 -05:00
parent d8331eaeb7
commit c79ddd0d35
40 changed files with 615 additions and 159 deletions

View File

@@ -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);
}
}