[Top][All Lists]

[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: Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11


                 Summary: NSColor setFill not well supported and setStroke
                 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



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];



Reply to this item at:


  Message sent via/by Savannah

reply via email to

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