bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #45122] [base][patch] Pattern phase support


From: Josh Freeman
Subject: [bug #45122] [base][patch] Pattern phase support
Date: Sun, 17 May 2015 21:41:54 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:35.0) Gecko/20100101 Firefox/35.0

URL:
  <http://savannah.gnu.org/bugs/?45122>

                 Summary: [base][patch] Pattern phase support
                 Project: GNUstep
            Submitted by: tedge
            Submitted on: Sun 17 May 2015 09:41:52 PM GMT
                Category: Backend
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

  Setup: VirtualBox 4.3 + Ubuntu 14.04 guest, Clang, current SVN trunk

  Patch adds support for the NSGraphicsContext's patternPhase offset when
drawing a pattern. (Patterns are currently always drawn with zero offset,
regardless of the draw context's patternPhase value).

  Pattern phase is useful for scrolling or animating a pattern-filled area, as
well as for tiling a pattern that's pinned to a nonzero origin.

  Patch also corrects a minor issue with getting the pattern size: The size
message is sent to a safer target object - the received parameter,
pattern_image - instead of the instance member, pattern. (Seems like they're
always the same object, but it's safer not to assume this).

  Test program is also attached.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 17 May 2015 09:41:52 PM GMT  Name: TestPatternPhase.m  Size: 2kB  
By: tedge

<http://savannah.gnu.org/bugs/download.php?file_id=34039>
-------------------------------------------------------
Date: Sun 17 May 2015 09:41:52 PM GMT  Name: back_PatternPhase.patch  Size:
2kB   By: tedge

<http://savannah.gnu.org/bugs/download.php?file_id=34038>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]