Blitting improvements

* Use a single QImage copy for actual drawing
* Use std::array and std::unique_ptr for image buffers
* Signal immediately after copying the buffer to internal image
This commit is contained in:
Cacodemon345
2021-12-21 16:38:13 +06:00
parent bbb0b38d31
commit 67a0f7a85f
9 changed files with 17 additions and 25 deletions

View File

@@ -14,6 +14,6 @@ public:
protected:
void onPaint(QPaintDevice* device);
QImage image;
QImage image{QSize(2048, 2048), QImage::Format_RGB32};
QRect source, destination;
};