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

Function newclipping

win/tty/wintty.c:470–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

468#endif /* RESIZABLE */
469
470static void
471newclipping(coordxy x, coordxy y)
472{
473#ifdef CLIPPING
474 if (CO < COLNO || LI < 1 + ROWNO + iflags.wc2_statuslines) {
475 setclipped(); /* sets clipping=TRUE */
476 if (x)
477 tty_cliparound(x, y);
478 } else {
479 clipping = FALSE;
480 clipx = clipy = 0;
481 }
482#else
483 nhUse(x + y);
484#endif
485 return;
486}
487
488/* destroy and recreate status window; extracted from winch_handler()
489 and augmented for use by tty_preference_update() */

Callers 2

resize_ttyFunction · 0.85
tty_preference_updateFunction · 0.85

Calls 2

setclippedFunction · 0.85
tty_cliparoundFunction · 0.85

Tested by

no test coverage detected