From f658d8b5cffeb36e7d28fca3bb3e370cd712fdd5 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Thu, 8 Jan 2009 22:38:33 +0000 Subject: [PATCH] [fixed-to-float.sh] Replace uses of COGL_FIXED_FROM_INT not followed by a space Previously the script assumed a space before the open bracket, so it missed a few cases in clutter/cogl/gles/cogl.c --- fixed-to-float.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/fixed-to-float.sh b/fixed-to-float.sh index 49cc14594..86dd0169d 100755 --- a/fixed-to-float.sh +++ b/fixed-to-float.sh @@ -35,6 +35,7 @@ sed -i 's/#define DET2X(a,b,c,d).*/#define DET2X(a,b,c,d) ((a * d) - (b * c))/ #works out fine for most cases... find ./clutter -iname '*.[ch]' -exec sed -i 's/COGL_FIXED_TO_INT//g' {} \; find ./clutter -iname '*.[ch]' -exec sed -i 's/COGL_FIXED_FROM_INT /(float)/g' {} \; +find ./clutter -iname '*.[ch]' -exec sed -i 's/COGL_FIXED_FROM_INT/(float)/g' {} \; find ./clutter -iname '*.[ch]' -exec sed -i 's/COGL_FIXED_TO_FLOAT//g' {} \; find ./clutter -iname '*.[ch]' -exec sed -i 's/COGL_FIXED_FROM_FLOAT//g' {} \; find ./clutter -iname '*.[ch]' -exec sed -i 's/COGL_FIXED_TO_DOUBLE /(double)/g' {} \;