mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Fix Qt screenhot crash (#889)
This commit is contained in:
@@ -136,7 +136,9 @@ public:
|
||||
|
||||
void toRgb(ImageData<ColorRgb>& image)
|
||||
{
|
||||
image.resize(_width, _height);
|
||||
if (image.width() != _width || image.height() != _height)
|
||||
image.resize(_width, _height);
|
||||
|
||||
const unsigned imageSize = _width * _height;
|
||||
|
||||
for (unsigned idx = 0; idx < imageSize; idx++)
|
||||
|
Reference in New Issue
Block a user