mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Fix logger and led colors (#906)
This commit is contained in:
@@ -165,9 +165,9 @@ public:
|
||||
///
|
||||
/// @param[out] image The image that buffers the output
|
||||
///
|
||||
void toRgb(Image<ColorRgb>& image)
|
||||
void toRgb(Image<ColorRgb>& image) const
|
||||
{
|
||||
_d_ptr->toRgb(*(image.imageData()));
|
||||
_d_ptr->toRgb(*image._d_ptr);
|
||||
}
|
||||
|
||||
///
|
||||
@@ -186,12 +186,10 @@ public:
|
||||
_d_ptr->clear();
|
||||
}
|
||||
|
||||
QSharedDataPointer<ImageData<Pixel_T>> imageData() const
|
||||
{
|
||||
return _d_ptr;
|
||||
}
|
||||
|
||||
private:
|
||||
template<class T>
|
||||
friend class Image;
|
||||
|
||||
///
|
||||
/// Translate x and y coordinate to index of the underlying vector
|
||||
///
|
||||
|
@@ -134,7 +134,7 @@ public:
|
||||
return _pixels;
|
||||
}
|
||||
|
||||
void toRgb(ImageData<ColorRgb>& image)
|
||||
void toRgb(ImageData<ColorRgb>& image) const
|
||||
{
|
||||
if (image.width() != _width || image.height() != _height)
|
||||
image.resize(_width, _height);
|
||||
|
@@ -79,7 +79,7 @@ protected:
|
||||
~Logger();
|
||||
|
||||
private:
|
||||
void write(const Logger::T_LOG_MESSAGE & message) const;
|
||||
void write(const Logger::T_LOG_MESSAGE & message);
|
||||
|
||||
static QMutex MapLock;
|
||||
static QMap<QString,Logger*> LoggerMap;
|
||||
@@ -106,7 +106,7 @@ public slots:
|
||||
void handleNewLogMessage(const Logger::T_LOG_MESSAGE&);
|
||||
|
||||
signals:
|
||||
void newLogMessage(Logger::T_LOG_MESSAGE);
|
||||
void newLogMessage(const Logger::T_LOG_MESSAGE&);
|
||||
|
||||
protected:
|
||||
LoggerManager();
|
||||
|
Reference in New Issue
Block a user