mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
fixed possible division by zero
This commit is contained in:
parent
21ef5263ef
commit
f769e1b244
@ -277,6 +277,8 @@ void cAnimation::Shift(void) {
|
||||
|
||||
int frametime = 1000 / FPS;
|
||||
int steps = (double)shifttime / (double)frametime;
|
||||
if (steps < 2)
|
||||
return;
|
||||
int stepXLinear = 0;
|
||||
int stepYLinear = 0;
|
||||
if (shiftstart.X() == shiftend.X()) {
|
||||
|
Loading…
Reference in New Issue
Block a user