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:
@@ -14,6 +14,6 @@ public:
|
||||
protected:
|
||||
void onPaint(QPaintDevice* device);
|
||||
|
||||
QImage image;
|
||||
QImage image{QSize(2048, 2048), QImage::Format_RGB32};
|
||||
QRect source, destination;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user