mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-01 18:00:26 +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:
|
||||
struct Fixed {
|
||||
fixmath::fixed value;
|
||||
|
||||
bool operator==(const Fixed& f) const {
|
||||
return this->value == f.value;
|
||||
}
|
||||
};
|
||||
struct Variant;
|
||||
using Vector = std::vector<Variant>;
|
||||
|
Loading…
Reference in New Issue
Block a user