Follow-up Comment #14, bug #27782 (project gnustep):

I figured out why NSCopyBits was drawing at the wrong location when the
destination is rotated. An updated patch is attached.

In -compositeGState, the pattern matrix was set up like that:
cairo_matrix_translate(&source_matrix, minx - x - dx, miny - y - dy -
ssize.height);

when it should have been:
cairo_matrix_translate(&source_matrix, minx - x + dx, miny - y + dy -
ssize.height);

(file #20255)
    _______________________________________________________

Additional Item Attachment:

File name: gnustep-drawing-fixes2.patch   Size:26 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?27782>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to