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/
_______________________________________________
Bug-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-gnustep