Bug 37495 - _cairo_fixed_16_16_from_double
Summary: _cairo_fixed_16_16_from_double
Status: RESOLVED MOVED
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 1.10.2
Hardware: All All
: medium normal
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-23 04:07 UTC by weie
Modified: 2018-08-25 13:54 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description weie 2011-05-23 04:07:15 UTC
At first,i do not understand that if there should return a negative value when i call this fuction with a negative parameter.
   When I draw a image with a large Scale(140,4) and large offset(relative to the origin),i find this fuction allways return a large positive value,and then the program run at fuction pixman_transform_point(), it will return FALSE,so this image do not paint.
Comment 1 weie 2011-05-23 04:09:17 UTC
_cairo_fixed_16_16_from_double error?
Comment 2 Andrea Canciani 2011-06-20 07:19:07 UTC
A similar issue is described here in https://bugs.freedesktop.org/show_bug.cgi?id=20091

Pixman restricts its input to 16.16 fixed point, so the pixman-based backends (image, xlib, xcb) currently fail to produce the correct output when using big input paths.

The correct approach would be to keep the path with arbitrary precision, then clip it before rasterizing/passing it to pixman.
Comment 3 GitLab Migration User 2018-08-25 13:54:19 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/cairo/cairo/issues/258.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.