bug-gnustep
[Top][All Lists]
Advanced

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

[bug #25943] Error trying to lock focus in offscreen window


From: Fred Kiefer
Subject: [bug #25943] Error trying to lock focus in offscreen window
Date: Sat, 21 Mar 2009 14:36:27 +0000
User-agent: Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.10 (like Gecko) SUSE

Follow-up Comment #1, bug #25943 (project gnustep):

Your great debugging session shows quite clear where the problem is. It is
the call to  [NSGraphicsContext saveGraphicsState], as this happens on a
secondary thread there is no previous graphics context (GSCurrentContext()
return nil). NSApplication takes care that the thread that calls
[NSApplication init] has a graphics context set up, but similar things don't
happen automatically for other threads.

You could use the method [NSGraphicsContext setCurrentContext:] in that
secondary thread to do this yourself.
I would expect that behaviour of Cocoa to be different and will welcome any
patches to make drawing in GNUstep work on secondary threads.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/





reply via email to

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