[cairo-bugs] [Bug 19584] New: Setting x co-ords as double appears to affect y co-ords too in set_source_surface

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jan 15 07:43:16 PST 2009


http://bugs.freedesktop.org/show_bug.cgi?id=19584

           Summary: Setting x co-ords as double appears to affect y co-ords
                    too in set_source_surface
           Product: cairo
           Version: 1.8.0
          Platform: x86 (IA32)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: xlib backend
        AssignedTo: cworth at cworth.org
        ReportedBy: karl at qdh.org.uk
         QAContact: cairo-bugs at cairographics.org


In some cairo code I've been battling with I've found something particularly
weird.

here's an example, I'm hoping someone can confirm (i'm using vala).

--
double x = 0.5;
double y = 0;

cr.set_source_surface(surface, x, y);
cr.paint();
--

For some reason the surface gets vertically offset by 0.5px as well. In order
to fix the bug I had to do this;

--
int x = 0.5; // not really, but essentially the same code
int y = 0;

cr.set_source_surface(surface, x, y);
cr.paint();
--

And the bug is gone :/


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the cairo-bugs mailing list