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

Function RetrieveSize

outdated/sys/mac/maccurs.c:106–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106Boolean
107RetrieveSize(short kind, short top, short left, short *height, short *width)
108{
109 Point p;
110
111 if (kind < 0 || kind > kLastWindowKind) {
112 return 0;
113 }
114 InitWinFile();
115 if (!savePos[kind].validSize) {
116 return 0;
117 }
118 *width = savePos[kind].width;
119 *height = savePos[kind].height;
120 p.h = left + *width;
121 p.v = top + *height;
122 return PtInRgn(p, GetGrayRgn());
123}
124
125static void
126SavePosition(short kind, short top, short left)

Callers 2

SanePositionsFunction · 0.85
mac_init_nhwindowsFunction · 0.85

Calls 1

InitWinFileFunction · 0.85

Tested by

no test coverage detected