mirror of
https://github.com/Hopiu/rpi-rgb-led-matrix.git
synced 2026-03-16 22:10:27 +00:00
o In case there is no default animation delay, use some reasonable
default of 10ms (vs. 1ms than before). (Pull request #199)
This commit is contained in:
parent
5fdc3088e7
commit
607fa3bae4
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ public:
|
|||
rgb_matrix::FrameCanvas *output)
|
||||
: canvas_(output) {
|
||||
int delay_time = img.animationDelay(); // in 1/100s of a second.
|
||||
if (delay_time < 1) delay_time = 1;
|
||||
if (delay_time < 1) delay_time = 10;
|
||||
delay_millis_ = delay_time * 10;
|
||||
|
||||
const int x_offset = do_center ? (output->width() - img.columns()) / 2 : 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue