aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/XPM.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2023-01-09 13:30:33 +1100
committerNeil <nyamatongwe@gmail.com>2023-01-09 13:30:33 +1100
commite4328d24681689a7fd0cb876a5fdd94ffd84f5f9 (patch)
tree75776dcb8ed7c68f8978c8503fd1bbdd273a94f0 /src/XPM.cxx
parent3bd67bd942b5193fa11b0ae458e3daf2926b7602 (diff)
downloadscintilla-mirror-e4328d24681689a7fd0cb876a5fdd94ffd84f5f9.tar.gz
Move methods from header to implementation to avoid conversion warnings for
each includer.
Diffstat (limited to 'src/XPM.cxx')
-rw-r--r--src/XPM.cxx8
1 files changed, 8 insertions, 0 deletions
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<float>(height) / scale;
+}
+
+float RGBAImage::GetScaledWidth() const noexcept {
+ return static_cast<float>(width) / scale;
+}
+
int RGBAImage::CountBytes() const noexcept {
return width * height * 4;
}