From 60f4657e9988a45b4ad852fc308e86f90f7516da Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Sun, 10 Nov 2024 21:34:48 -0800 Subject: [PATCH] add non-const Image::get_data() --- src/Image.hh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Image.hh b/src/Image.hh index b0539e3..1dea5a3 100644 --- a/src/Image.hh +++ b/src/Image.hh @@ -56,6 +56,9 @@ public: inline bool get_has_alpha() const { return this->has_alpha; } + inline void* get_data() { + return this->data.raw; + } inline const void* get_data() const { return this->data.raw; } @@ -221,6 +224,9 @@ public: inline size_t get_height() const { return this->height; } + inline void* get_data() { + return this->data; + } inline const void* get_data() const { return this->data; }