mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-24 12:21:34 +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>
|
2009-11-05 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/cairo/CairoGState.m: Set the colour for all text drawing.
|
* Source/cairo/CairoGState.m: Set the colour for all text drawing.
|
||||||
|
|
|
@ -3835,7 +3835,7 @@ static BOOL didCreatePixmaps;
|
||||||
|
|
||||||
- (void *) windowDevice: (int)win
|
- (void *) windowDevice: (int)win
|
||||||
{
|
{
|
||||||
static Window ptrloc;
|
Window ptrloc;
|
||||||
gswindow_device_t *window;
|
gswindow_device_t *window;
|
||||||
|
|
||||||
window = WINDOW_WITH_TAG(win);
|
window = WINDOW_WITH_TAG(win);
|
||||||
|
@ -3843,7 +3843,7 @@ static BOOL didCreatePixmaps;
|
||||||
ptrloc = window->ident;
|
ptrloc = window->ident;
|
||||||
else
|
else
|
||||||
ptrloc = 0;
|
ptrloc = 0;
|
||||||
return &ptrloc;
|
return (void *)ptrloc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Cursor Ops */
|
/* Cursor Ops */
|
||||||
|
|
Loading…
Reference in a new issue