MCPcopy Create free account
hub / github.com/NetHack/NetHack / OpenShWindow

Function OpenShWindow

sys/amiga/amiwind.c:102–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 */
101
102struct Window *
103OpenShWindow(struct NewWindow *nw)
104{
105 struct Window *win;
106 ULONG idcmpflags;
107
108 if (!HackPort) /* Sanity check */
109 return (struct Window *) 0;
110
111 idcmpflags = nw->IDCMPFlags;
112 nw->IDCMPFlags = 0;
113 if (!(win = OpenWindow((void *) nw))) {
114 nw->IDCMPFlags = idcmpflags;
115 return (struct Window *) 0;
116 }
117
118 nw->IDCMPFlags = idcmpflags;
119 win->UserPort = HackPort;
120 ModifyIDCMP(win, idcmpflags);
121 return win;
122}
123
124/*
125 * Close a window that shared the HackPort IDCMP port.

Callers 4

amii_create_nhwindowFunction · 0.85
DoMenuScrollFunction · 0.85
amii_player_selectionFunction · 0.85
RandomWindowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected