bug-gnustep
[Top][All Lists]
Advanced

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

[bug #27927] NSColor setFill not well supported and setStroke broken


From: Quentin Mathé
Subject: [bug #27927] NSColor setFill not well supported and setStroke broken
Date: Tue, 03 Nov 2009 17:23:41 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11

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

                 Summary: NSColor setFill not well supported and setStroke
broken
                 Project: GNUstep
            Submitted by: qmathe
            Submitted on: Tue 03 Nov 2009 05:23:40 PM GMT
                Category: Gui/AppKit
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Ubuntu 9.04 and Gui + Cairo backend (svn trunk r28906). iirc the same
problems also hold for the art backend.

Here are some -setFill and -setStroke use cases that works well on Cocoa but
not on GNUstep.

The code below works but logs the following error:
DPSundefined: No fill colorspace defined, assume DeviceRGB

[[NSColor redColor] setFill];
[NSBezierPath fillRect: aRect];

And the following code logs the same error but doesn't work, the alpha
component is just ignored:

[[[NSColor redColor] colorWithAlphaComponent: 0.5] setFill];
[NSBezierPath fillRect: aRect];

-setStroke doesn't work at all and logs a similar error than -setFill
(DPSundefined: No stroke colorspace defined, assume DeviceRGB). For example
the code below just draws a red border and not a green one:

[NSBezierPath setDefaultLineWidth: 5.0];
[[NSColor redColor] setFill]; // You can replace -setFill by -set here, the
result is the same
[[NSColor greenColor] setStroke];
[NSBezierPath strokeRect: aRect];

Quentin.




    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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