From: Kevin W. <kw...@co...> - 2013-12-07 14:52:32
|
Adrian and Linus, On 12/7/13, 9:43 AM, Adrian Robert wrote: > From what I can tell the gstate is just a shortcut for avoiding creating a new one by focusing the view. So it should be possible to use: > > [view lockFocusIfCanDraw] > draw, calling the NSCopyBits with NSNullObject instead of gstate > [view unlockFocus] > > But it might not be that simple — I don’t fully understand the NSGraphicsContext-related calls below. Thank you for these suggestions. I've been doing some digging into gState and can't quite figure out what purpose it serves. I don't think there's an equivalent CoreGrpahics call that we can substitute in for it (I've been looking at it from that angle). I'll give this approach a try and see if I can make any progress. More in a few days, hopefully. What a headache! Some might call the Win32 and Xlib API's may be moribund, but I prefer Debian-speak here: "stable." Grumble, grumble, grumble... --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com |