mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Added HyperionPng with similar interface as Hyperion to test frame-capture and handling.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
RgbImage::RgbImage(const unsigned width, const unsigned height, const RgbColor background) :
|
||||
mWidth(width),
|
||||
mHeight(height),
|
||||
mColors(NULL)
|
||||
mColors(nullptr)
|
||||
{
|
||||
mColors = new RgbColor[width*height];
|
||||
for (RgbColor* color = mColors; color <= mColors+(mWidth*mHeight); ++color)
|
||||
@@ -21,6 +21,8 @@ RgbImage::RgbImage(const unsigned width, const unsigned height, const RgbColor b
|
||||
|
||||
RgbImage::~RgbImage()
|
||||
{
|
||||
std::cout << "RgbImage(" << this << ") is being deleted" << std::endl;
|
||||
|
||||
delete[] mColors;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user