X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fautomation.h;h=cae68d54a5afa281d0fa0009d1a81e18594bfaec;hb=0aa1cf868b3686002891a830f5f8e407344b1d9e;hp=615a9d55197f3b19cda11d376bb4803c4d6f1e28;hpb=c63c2c2707e1b1145db2edd6824bd69f59341e15;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/automation.h b/cinelerra-5.1/cinelerra/automation.h index 615a9d55..cae68d54 100644 --- a/cinelerra-5.1/cinelerra/automation.h +++ b/cinelerra-5.1/cinelerra/automation.h @@ -2,6 +2,7 @@ /* * CINELERRA * Copyright (C) 2008-2013 Adam Williams + * Copyright (C) 2003-2016 Cinelerra CV contributors * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -43,16 +44,16 @@ value = INFINITYGAIN; \ if (autogrouptype == AUTOGROUPTYPE_VIDEO_FADE) \ CLAMP(value, 0, 100); \ - if (autogrouptype == AUTOGROUPTYPE_ZOOM && value < 0) \ - value = 0; \ - else if (autogrouptype == AUTOGROUPTYPE_SPEED && value < 0.001) \ - value = 0.001; + if (autogrouptype == AUTOGROUPTYPE_ZOOM && value < ZOOM_MIN) \ + value = ZOOM_MIN; \ + else if (autogrouptype == AUTOGROUPTYPE_SPEED && value < SPEED_MIN) \ + value = SPEED_MIN; #define AUTOMATIONVIEWCLAMPS(value, autogrouptype) \ if (autogrouptype == AUTOGROUPTYPE_ZOOM && value < 0) \ value = 0; \ - else if (autogrouptype == AUTOGROUPTYPE_SPEED && value < 0) \ - value = 0; + else if (autogrouptype == AUTOGROUPTYPE_SPEED && value < SPEED_MIN) \ + value = SPEED_MIN; class Automation