forked from pyrite-dev/milsko
cmacos: remove parent check oops
This commit is contained in:
parent
9b138c458e
commit
8b176d3a00
1 changed files with 5 additions and 7 deletions
|
|
@ -7,13 +7,11 @@ static MwLL MwLLCreateImpl(MwLL parent, int x, int y, int width, int height) {
|
||||||
|
|
||||||
MwLLCreateCommon(r);
|
MwLLCreateCommon(r);
|
||||||
|
|
||||||
if(!parent) {
|
/* todo: how do we set parent windows? If we can't, what is our equivalant to MacOS's NSViews, Wayland's subsurfaces, etc.? */
|
||||||
SetRect(&r->cmacos.winRect, 100, 100, width, height);
|
SetRect(&r->cmacos.winRect, x, y, width, height);
|
||||||
r->cmacos.window = NewCWindow(nil, &r->cmacos.winRect, (ConstStr255Param) "\p", true,
|
r->cmacos.window = NewCWindow(nil, &r->cmacos.winRect, (ConstStr255Param) "\p", true,
|
||||||
documentProc, (WindowPtr)(-1), true, 0);
|
documentProc, (WindowPtr)(-1), true, 0);
|
||||||
SetPort(r->cmacos.window);
|
SetPort(r->cmacos.window);
|
||||||
//
|
|
||||||
}
|
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue