summaryrefslogtreecommitdiff
path: root/plugingui/texture.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2020-03-03 19:16:04 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2020-03-07 19:23:12 +0100
commitdf71bccf9c4731af9bcca79eee8d95651646bd82 (patch)
tree1c9485bed0fdd64410282156537553b8fde3bb86 /plugingui/texture.cc
parent560574d2e565510edd39dd9daf1d957a85f2220c (diff)
Further optimize pixel blending. And re-introduce lineBlending in Painter::drawImage.
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