From a8eea6e9c1f32d5562594656c68dc4b9f985b790 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 14 Nov 2020 09:46:34 +0100 Subject: Add x_offset to drawable::line to be able to have drawImage render images outside the parent area. --- plugingui/texturedbox.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugingui/texturedbox.h') diff --git a/plugingui/texturedbox.h b/plugingui/texturedbox.h index 0ff0490..7aa3967 100644 --- a/plugingui/texturedbox.h +++ b/plugingui/texturedbox.h @@ -89,7 +89,8 @@ public: void setSize(std::size_t width, std::size_t height); const Colour& getPixel(std::size_t x, std::size_t y) const override; - const std::uint8_t* line(std::size_t y) const override; + const std::uint8_t* line(std::size_t y, + std::size_t x_offset = 0) const override; bool hasAlpha() const override; private: -- cgit v1.2.3