mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-06 06:58:15 +00:00
Add operator== to Fixed type to enable Vector comparisons
This commit is contained in:
parent
db9db191f5
commit
dbeec18ef5
@ -44,6 +44,10 @@ namespace doc {
|
|||||||
public:
|
public:
|
||||||
struct Fixed {
|
struct Fixed {
|
||||||
fixmath::fixed value;
|
fixmath::fixed value;
|
||||||
|
|
||||||
|
bool operator==(const Fixed& f) const {
|
||||||
|
return this->value == f.value;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
struct Variant;
|
struct Variant;
|
||||||
using Vector = std::vector<Variant>;
|
using Vector = std::vector<Variant>;
|
||||||
|
Loading…
Reference in New Issue
Block a user