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

Function set_tty_font_name

outdated/sys/mac/macwin.c:484–499  ·  view source on GitHub ↗

* Change default window fonts. */

Source from the content-addressed store, hash-verified

482 * Change default window fonts.
483 */
484short
485set_tty_font_name(int window_type, char *font_name)
486{
487 short fnum;
488 Str255 new_font;
489
490 if (window_type < NHW_BASE || window_type > NHW_TEXT)
491 return general_failure;
492
493 C2P(font_name, new_font);
494 GetFNum(new_font, &(fnum));
495 if (!fnum)
496 return general_failure;
497 win_fonts[window_type] = fnum;
498 return noErr;
499}
500
501static void
502DrawScrollbar(NhWindow *aWin)

Callers

nothing calls this directly

Calls 1

C2PFunction · 0.85

Tested by

no test coverage detected