summaryrefslogtreecommitdiff
path: root/plugingui/texture.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/texture.cc')
-rw-r--r--plugingui/texture.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugingui/texture.cc b/plugingui/texture.cc
index 39d417d..a5908cb 100644
--- a/plugingui/texture.cc
+++ b/plugingui/texture.cc
@@ -61,7 +61,7 @@ const Colour& Texture::getPixel(size_t x, size_t y) const
const std::uint8_t* Texture::line(std::size_t y) const
{
- return image.line(y + _y);
+ return image.line(y + _y) + _x * 4;
}
bool Texture::hasAlpha() const