mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
@@ -69,11 +69,8 @@ void ImageProcessor::setSize(const unsigned width, const unsigned height)
|
||||
return;
|
||||
}
|
||||
|
||||
if ( _imageToLeds != nullptr)
|
||||
{
|
||||
// Clean up the old buffer and mapping
|
||||
delete _imageToLeds;
|
||||
}
|
||||
// Clean up the old buffer and mapping
|
||||
delete _imageToLeds;
|
||||
|
||||
// Construct a new buffer and mapping
|
||||
_imageToLeds = (width>0 && height>0) ? (new ImageToLedsMap(width, height, 0, 0, _ledString.leds())) : nullptr;
|
||||
|
Reference in New Issue
Block a user