From e4328d24681689a7fd0cb876a5fdd94ffd84f5f9 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 9 Jan 2023 13:30:33 +1100 Subject: Move methods from header to implementation to avoid conversion warnings for each includer. --- src/XPM.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/XPM.cxx') diff --git a/src/XPM.cxx b/src/XPM.cxx index 65c2d4835..31d87a06d 100644 --- a/src/XPM.cxx +++ b/src/XPM.cxx @@ -239,6 +239,14 @@ RGBAImage::RGBAImage(const XPM &xpm) { } } +float RGBAImage::GetScaledHeight() const noexcept { + return static_cast(height) / scale; +} + +float RGBAImage::GetScaledWidth() const noexcept { + return static_cast(width) / scale; +} + int RGBAImage::CountBytes() const noexcept { return width * height * 4; } -- cgit v1.2.3