From 11bbce74479994e8ee9420112f80a01eb2944f28 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 15 Sep 2016 19:08:08 +0200 Subject: Added new inline display for showing load progress. --- plugingui/pixelbuffer.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'plugingui/pixelbuffer.h') diff --git a/plugingui/pixelbuffer.h b/plugingui/pixelbuffer.h index 8e7618d..762aaa6 100644 --- a/plugingui/pixelbuffer.h +++ b/plugingui/pixelbuffer.h @@ -45,13 +45,14 @@ public: unsigned char blue, unsigned char alpha); - unsigned char* buf; - size_t width; - size_t height; + unsigned char* buf{nullptr}; + size_t width{0}; + size_t height{0}; }; class PixelBufferAlpha { public: + PixelBufferAlpha() = default; PixelBufferAlpha(size_t width, size_t height); ~PixelBufferAlpha(); @@ -77,11 +78,12 @@ public: unsigned char* blue, unsigned char* alpha); - unsigned char* buf; - size_t width; - size_t height; - size_t x; - size_t y; + bool managed{false}; + unsigned char* buf{nullptr}; + size_t width{0}; + size_t height{0}; + size_t x{0}; + size_t y{0}; }; } // GUI:: -- cgit v1.2.3