[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #34470] -[NSBitmapImageRep initWithFocusedViewRect:] broken
From: |
Eric Wasylishen |
Subject: |
[bug #34470] -[NSBitmapImageRep initWithFocusedViewRect:] broken |
Date: |
Wed, 05 Oct 2011 18:42:02 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_1) AppleWebKit/534.48.3 (KHTML, like Gecko) Version/5.1 Safari/534.48.3 |
Follow-up Comment #4, bug #34470 (project gnustep):
Hi Fred,
I think that would work, but it would take some work to test it. We really
need a test for lockFocus/unlockFocus in GSTest or in the gui test suite. I
was thinking of looking at this after the next release, maybe.
There are other differences between GS and cocoa; e.g. on cocoa, -unlockFocus
removes all representations from the image, and adds a new representation
containing the cache that was created in lockFocus and drawn on.
The background colour drawing code is a mystery to me as well. It's hard to
find a clear explanation of what -setBackgroundColor: is supposed to do. I did
verify on cocoa that the background colour is _not_ drawn if you load a
transparent PNG, set a solid background colour, and then use one of the
-drawInRect: methods. Personally, I would be tempted to deprecate the
background colour it and ignore it because it doesn't seem to do anything
useful/obvious.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?34470>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/