[cairo-bugs] [Bug 61876] Regression since 1.11.4: Corrupt drawing on mingw64 build used with virt-viewer 0.5.5 binaries

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Apr 1 15:47:00 PDT 2013


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

--- Comment #5 from Marc-Andre Lureau <marcandre.lureau at gmail.com> ---
Created attachment 77295
  --> https://bugs.freedesktop.org/attachment.cgi?id=77295&action=edit
fix

    win32: fix corrupted drawing

    Fix src bitmap coordinates, which origin is bottom-left. This is
    apparently a bug in StretchDIBits(), according to some comments on
    MSDN API documentation.

    The backend used to have this coordinate change in the past:

                if (!StretchDIBits (dst->dc,
                                    /* dst x,y,w,h */
                                    dst_r.x, dst_r.y + dst_r.height - 1,
                                    dst_r.width, - (int) dst_r.height,
                                    /* src x,y,w,h */
                                    src_r.x, src_extents.height - src_r.y + 1,
                                    src_r.width, - (int) src_r.height,
                                    src_image->data,
                                    &bi,
                                    DIB_RGB_COLORS,
                                    SRCCOPY))

-- 
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/20130401/dc782115/attachment.html>


More information about the cairo-bugs mailing list