summaryrefslogtreecommitdiff
path: root/meta/packages/cairo/files
diff options
context:
space:
mode:
authorRoss Burton <ross@openedhand.com>2007-03-06 09:29:06 +0000
committerRoss Burton <ross@openedhand.com>2007-03-06 09:29:06 +0000
commit8799e4495436fc2eddcf97caef21319b772532fe (patch)
tree1c19d2f78abde82bde7d2b67fcd7cd37367c7f16 /meta/packages/cairo/files
parent14c2aba71bf55740608962f6ee5a36f9bbb3350f (diff)
downloadopenembedded-core-8799e4495436fc2eddcf97caef21319b772532fe.tar.gz
openembedded-core-8799e4495436fc2eddcf97caef21319b772532fe.tar.bz2
openembedded-core-8799e4495436fc2eddcf97caef21319b772532fe.zip
Move a patch to the 1.2.4 folder as its only used in 1.2
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1329 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/cairo/files')
-rw-r--r--meta/packages/cairo/files/cairo-fixed.patch43
1 files changed, 0 insertions, 43 deletions
diff --git a/meta/packages/cairo/files/cairo-fixed.patch b/meta/packages/cairo/files/cairo-fixed.patch
deleted file mode 100644
index 8df54d9cb5..0000000000
--- a/meta/packages/cairo/files/cairo-fixed.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-diff -ur cairo-1.2.4/src/cairo-fixed.c cairo-1.2.4-new/src/cairo-fixed.c
---- cairo-1.2.4/src/cairo-fixed.c 2006-06-10 07:07:37.000000000 +0300
-+++ cairo-1.2.4-new/src/cairo-fixed.c 2006-08-25 13:06:26.000000000 +0300
-@@ -43,12 +43,6 @@
- }
-
- cairo_fixed_t
--_cairo_fixed_from_double (double d)
--{
-- return (cairo_fixed_t) floor (d * 65536 + 0.5);
--}
--
--cairo_fixed_t
- _cairo_fixed_from_26_6 (uint32_t i)
- {
- return i << 10;
-diff -ur cairo-1.2.4/src/cairoint.h cairo-1.2.4-new/src/cairoint.h
---- cairo-1.2.4/src/cairoint.h 2006-08-18 17:20:16.000000000 +0300
-+++ cairo-1.2.4-new/src/cairoint.h 2006-08-25 13:14:07.000000000 +0300
-@@ -1117,8 +1117,21 @@
-
- #define CAIRO_FIXED_ONE _cairo_fixed_from_int (1)
-
--cairo_private cairo_fixed_t
--_cairo_fixed_from_double (double d);
-+#define CAIRO_DOUBLE2FIX_MAGIC 103079215104.0 /* 2 ^ (52 - 16) * 1.5 */
-+
-+#ifdef WORDS_BIGENDIAN
-+#define iman 1
-+#else
-+#define iman 0
-+#endif
-+
-+static inline cairo_fixed_t
-+_cairo_fixed_from_double (double d)
-+{
-+ d = d + CAIRO_DOUBLE2FIX_MAGIC;
-+
-+ return ((cairo_fixed_t *) &d)[iman];
-+}
-
- cairo_private cairo_fixed_t
- _cairo_fixed_from_26_6 (uint32_t i);