mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-23 11:51:27 +00:00
Don't return a static variable as the window device.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@28975 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ebfac7ae21
commit
ca51d23b97
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-11-08 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/x11/XGServerWindow.m (-windowDevice:): Don't return a
|
||||
static variable as the window device.
|
||||
|
||||
2009-11-05 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/cairo/CairoGState.m: Set the colour for all text drawing.
|
||||
|
|
|
@ -3835,7 +3835,7 @@ static BOOL didCreatePixmaps;
|
|||
|
||||
- (void *) windowDevice: (int)win
|
||||
{
|
||||
static Window ptrloc;
|
||||
Window ptrloc;
|
||||
gswindow_device_t *window;
|
||||
|
||||
window = WINDOW_WITH_TAG(win);
|
||||
|
@ -3843,7 +3843,7 @@ static BOOL didCreatePixmaps;
|
|||
ptrloc = window->ident;
|
||||
else
|
||||
ptrloc = 0;
|
||||
return &ptrloc;
|
||||
return (void *)ptrloc;
|
||||
}
|
||||
|
||||
/* Cursor Ops */
|
||||
|
|
Loading…
Reference in a new issue