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

Function tomb_text

sys/amiga/amirip.c:285–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285static void
286tomb_text(char *p)
287{
288 char buf[STONE_LINE_LEN * 2];
289 int l;
290
291 tomb_line += rp->TxHeight;
292
293 if (!*p)
294 return;
295 sprintf(buf, " %s ", p);
296 l = TextLength(rp, buf, strlen(buf));
297
298 SetAPen(rp, cmap_white);
299 Move(rp, cols[cno] - (l / 2) - 1, tomb_line);
300 Text(rp, buf, strlen(buf));
301
302 SetAPen(rp, cmap_white);
303 Move(rp, cols[cno] - (l / 2) + 1, tomb_line);
304 Text(rp, buf, strlen(buf));
305
306 SetAPen(rp, cmap_white);
307 Move(rp, cols[cno] - (l / 2), tomb_line - 1);
308 Text(rp, buf, strlen(buf));
309
310 SetAPen(rp, cmap_white);
311 Move(rp, cols[cno] - (l / 2), tomb_line + 1);
312 Text(rp, buf, strlen(buf));
313
314 SetAPen(rp, cmap_black);
315 Move(rp, cols[cno] - (l / 2), tomb_line);
316 Text(rp, buf, strlen(buf));
317}
318
319/* search colormap for best match to given color */
320static int

Callers 1

amii_outripFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected