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:
Jasper Poppe 2016-12-08 20:37:12 -08:00 committed by Henner Zeller
parent 5fdc3088e7
commit 607fa3bae4

View file

@ -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;