diff options
Diffstat (limited to 'src/lib/pixel_quanta.cc')
| -rw-r--r-- | src/lib/pixel_quanta.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/pixel_quanta.cc b/src/lib/pixel_quanta.cc index 09e684064..7c1d285cf 100644 --- a/src/lib/pixel_quanta.cc +++ b/src/lib/pixel_quanta.cc @@ -53,6 +53,13 @@ PixelQuanta::round_y (int y_) const } +dcp::Size +PixelQuanta::round (dcp::Size size) const +{ + return dcp::Size (round_x(size.width), round_y(size.height)); +} + + PixelQuanta max (PixelQuanta const& a, PixelQuanta const& b) { |
