X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fpixel_quanta.cc;h=ad3ee1d7a6c7fff1040dbe8ca866dff7aa8b9456;hb=refs%2Fheads%2Fadjust-sizing;hp=7c1d285cffd3d0c1b55b0384f73cc582b10cd135;hpb=d6aeaf8dd1b3158689da7b75c7417c1838af9c95;p=dcpomatic.git diff --git a/src/lib/pixel_quanta.cc b/src/lib/pixel_quanta.cc index 7c1d285cf..ad3ee1d7a 100644 --- a/src/lib/pixel_quanta.cc +++ b/src/lib/pixel_quanta.cc @@ -66,3 +66,17 @@ max (PixelQuanta const& a, PixelQuanta const& b) return { std::max(a.x, b.x), std::max(a.y, b.y) }; } + +bool +operator==(PixelQuanta const& a, PixelQuanta const& b) +{ + return a.x == b.x && a.y == b.y; +} + + +bool +operator!=(PixelQuanta const& a, PixelQuanta const& b) +{ + return a.x != b.x || a.y != b.y; +} +