[cairo-bugs] [Bug 88663] _cairo_pattern_get_extents : allow for a floating one pixel rounded difference

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jun 22 00:19:34 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=88663

Massimo <sixtysix at inwind.it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #6 from Massimo <sixtysix at inwind.it> ---
-    ix1 = _cairo_lround (x1);
+    ix1 = x1;
     if (x2 > CAIRO_RECT_INT_MAX)
     ix2 = CAIRO_RECT_INT_MAX;
     else
-    ix2 = _cairo_lround (x2);
-    extents->x = ix1; extents->width  = ix2 - ix1;
+    ix2 = x2;
+    extents->x = ix1; extents->width  = _cairo_lround(ix2 - ix1);


I think that at least extents->x (and y) should still be rounded

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo-bugs/attachments/20150622/5f47ac26/attachment.html>


More information about the cairo-bugs mailing list