From d9d7188ad7b22e8991a9ef685840ac0e88566b39 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 7 Mar 2020 14:22:56 +0100 Subject: Use vector for PixelBuffer memory allocation. Use optimized render routines in some more painter algorithms. Fix capitalization of Canvas::getPixelBuffer method. --- plugingui/pixelbuffer.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugingui/pixelbuffer.h') 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 +#include #include #include "guievent.h" @@ -49,6 +50,7 @@ public: Rect updateBuffer(std::vector& pixel_buffers); + std::vector 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 buf_data; std::uint8_t* buf{nullptr}; std::size_t width{0}; std::size_t height{0}; -- cgit v1.2.3