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

Function SavePosition

outdated/sys/mac/maccurs.c:125–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125static void
126SavePosition(short kind, short top, short left)
127{
128 if (kind < 0 || kind > kLastWindowKind) {
129 dprintf("Save bad kind %d", kind);
130 return;
131 }
132 InitWinFile();
133 savePos[kind].validPos = 1;
134 savePos[kind].top = top;
135 savePos[kind].left = left;
136 dprintf("Save kind %d pt (%d,%d)", kind, left, top);
137 FlushWinFile();
138}
139
140static void
141SaveSize(short kind, short height, short width)

Callers 1

SaveWindowPosFunction · 0.85

Calls 3

dprintfFunction · 0.85
InitWinFileFunction · 0.85
FlushWinFileFunction · 0.85

Tested by

no test coverage detected