X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fchromakeyhsv%2Fchromakey.sl;h=51cd1f3453f3fc434a4580a1b68dbbea62c25d55;hb=a4387a272874bd4ed9f010684976f336fa3d0190;hp=25ca2d041b1a80266c8715257e8298a010828c98;hpb=21c2e6b36d6a96c2f662a89459d607b5a387f4eb;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/plugins/chromakeyhsv/chromakey.sl b/cinelerra-5.1/plugins/chromakeyhsv/chromakey.sl index 25ca2d04..51cd1f34 100644 --- a/cinelerra-5.1/plugins/chromakeyhsv/chromakey.sl +++ b/cinelerra-5.1/plugins/chromakeyhsv/chromakey.sl @@ -41,10 +41,10 @@ void main() /* Hue wrap */ if(color2.r <= hue_key - tolerance_in * 180.0) - color2.r += 360; + color2.r += 360.0; else if(color2.r >= hue_key + tolerance_in * 180.0) - color2.r -= 360; + color2.r -= 360.0; /* Hue is completely out of range */ if (tolerance == 0.0)