mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 16:20:46 +00:00
Fixup for visibility correction in latest NSThread
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25609 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5c32995867
commit
daadcc3536
1 changed files with 4 additions and 2 deletions
|
@ -51,6 +51,8 @@
|
|||
#include "AppKit/DPSOperators.h"
|
||||
#include "GNUstepGUI/GSVersion.h"
|
||||
|
||||
typedef struct { @defs(NSThread) } *TInfo;
|
||||
|
||||
/* The memory zone where all global objects are allocated from (Contexts
|
||||
are also allocated from this zone) */
|
||||
static NSZone *_globalGSZone = NULL;
|
||||
|
@ -93,7 +95,7 @@ NSGraphicsContext *GSCurrentContext(void)
|
|||
*/
|
||||
NSThread *th = GSCurrentThread();
|
||||
|
||||
return (NSGraphicsContext*) th->_gcontext;
|
||||
return (NSGraphicsContext*) ((TInfo)th)->_gcontext;
|
||||
#else
|
||||
NSMutableDictionary *dict = [[NSThread currentThread] threadDictionary];
|
||||
|
||||
|
@ -162,7 +164,7 @@ NSGraphicsContext *GSCurrentContext(void)
|
|||
*/
|
||||
NSThread *th = GSCurrentThread();
|
||||
|
||||
ASSIGN(th->_gcontext, context);
|
||||
ASSIGN(((TInfo)th)->_gcontext, context);
|
||||
#else
|
||||
NSMutableDictionary *dict = [[NSThread currentThread] threadDictionary];
|
||||
|
||||
|
|
Loading…
Reference in a new issue