diff options
author | Graydon Hoare <graydon@redhat.com> | 2004-05-20 16:42:56 +0000 |
---|---|---|
committer | Graydon Hoare <graydon@redhat.com> | 2004-05-20 16:42:56 +0000 |
commit | 23026d5ab65201793ac19b459e3e7e05a090e435 (patch) | |
tree | 4e3b57692a89e26b22a29507ad68c2496ea922b9 /src/cairo-fixed.c | |
parent | aab2fe8c059cc41451ddf5e0719f18d77ef354f4 (diff) |
Add sanity checking feature configury.
Add sanity checking feature.
Add sanity checking.
Add prototypes.
New functions.
New function.
Use fixed functions. (_cairo_gstate_clip): Arithmetic fixes. (_cairo_gstate_clip_and_composite_trapezoids): (_cairo_gstate_show_surface): (_cairo_gstate_show_text): (_cairo_gstate_show_glyphs): Corrections to clipping.
Add XCopyArea fast path. (_cairo_xlib_surface_set_clip_region): Drive clip to drawable.
Diffstat (limited to 'src/cairo-fixed.c')
-rw-r--r-- | src/cairo-fixed.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/cairo-fixed.c b/src/cairo-fixed.c index 9a7e7bc47..2561a4ad5 100644 --- a/src/cairo-fixed.c +++ b/src/cairo-fixed.c @@ -51,3 +51,14 @@ _cairo_fixed_to_double (cairo_fixed_t f) return ((double) f) / 65536.0; } +int +_cairo_fixed_is_integer (cairo_fixed_t f) +{ + return (f & 0xFFFF) == 0; +} + +int +_cairo_fixed_integer_part (cairo_fixed_t f) +{ + return f >> 16; +} |