summaryrefslogtreecommitdiff
path: root/plugingui/pixelbuffer.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2020-03-07 14:22:56 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2020-03-07 19:23:26 +0100
commitd9d7188ad7b22e8991a9ef685840ac0e88566b39 (patch)
tree23ac163bfb60cce4b9aefb658df5322687db1dc6 /plugingui/pixelbuffer.h
parentdf71bccf9c4731af9bcca79eee8d95651646bd82 (diff)
Use vector for PixelBuffer memory allocation. Use optimized render routines in some more painter algorithms. Fix capitalization of Canvas::getPixelBuffer method.
Diffstat (limited to 'plugingui/pixelbuffer.h')
-rw-r--r--plugingui/pixelbuffer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugingui/pixelbuffer.h b/plugingui/pixelbuffer.h
index 5078ed6..5c11d14 100644
--- a/plugingui/pixelbuffer.h
+++ b/plugingui/pixelbuffer.h
@@ -29,6 +29,7 @@
#include "colour.h"
#include <cstddef>
+#include <cstdint>
#include <vector>
#include "guievent.h"
@@ -49,6 +50,7 @@ public:
Rect updateBuffer(std::vector<class PixelBufferAlpha*>& pixel_buffers);
+ std::vector<std::uint8_t> buf_data;
std::uint8_t* buf{nullptr};
std::size_t width{0};
std::size_t height{0};
@@ -78,7 +80,7 @@ public:
const std::uint8_t* getLine(std::size_t x, std::size_t y) const;
- bool managed{false};
+ std::vector<std::uint8_t> buf_data;
std::uint8_t* buf{nullptr};
std::size_t width{0};
std::size_t height{0};