File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -84,11 +84,11 @@ template <class PixelType>
84
84
const PixelType LEDImageBase<PixelType>::pixel( int row, int column ) const {
85
85
if (this ->isProgMem ()) {
86
86
switch (sizeof (PixelType)) {
87
- case 16 :
87
+ case 4 :
88
88
return (PixelType)pgm_read_word_near ( this ->data () + row*this ->columns () + column );
89
89
break ;
90
90
default :
91
- case 8 :
91
+ case 2 :
92
92
return (PixelType)pgm_read_byte_near ( this ->data () + row*this ->columns () + column );
93
93
break ;
94
94
}
@@ -143,7 +143,7 @@ LEDImage<PixelType>::LEDImage(const LEDImageBase<PixelType>& other)
143
143
_data ( other.isProgMem() ?
144
144
other.data() :
145
145
(PixelType*)memcpy(
146
- new RGBColorType [(other.rows()*other.columns())],
146
+ new PixelType [(other.rows()*other.columns())],
147
147
other.data(),
148
148
(other.rows()*other.columns())*sizeof(PixelType)
149
149
)),
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ class GlyphSequenceAnimation : public RGBAnimationBase {
118
118
class ImageSequenceAnimation : public RGBAnimationBase {
119
119
public:
120
120
struct Frame {
121
- const RGBImageBase * image;
121
+ const LEDImageBase<RGBColorType> * image;
122
122
int row;
123
123
int column;
124
124
unsigned long interval;
You can’t perform that action at this time.
0 commit comments