summaryrefslogtreecommitdiff
path: root/plugingui/texturedbox.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2020-11-14 09:46:34 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2020-11-14 12:08:50 +0100
commita8eea6e9c1f32d5562594656c68dc4b9f985b790 (patch)
treefd44df99b9ff3bd4b4a19003653dbfa814e29f0c /plugingui/texturedbox.h
parentacc285b59b264c6d8b1e724a883c56e7f24d22b0 (diff)
Add x_offset to drawable::line to be able to have drawImage render images outside the parent area.
Diffstat (limited to 'plugingui/texturedbox.h')
-rw-r--r--plugingui/texturedbox.h3
1 files changed, 2 insertions, 1 deletions
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: