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

Function erase_rect

outdated/sys/mac/mactty.c:495–511  ·  view source on GitHub ↗

* Fill an area with the background color */

Source from the content-addressed store, hash-verified

493 * Fill an area with the background color
494 */
495static void
496erase_rect(tty_record *record, Rect *area)
497{
498 if (game_active && u.uhp > 0 && iflags.use_stone
499 && record->its_window == _mt_window) {
500 PixPatHandle ppat;
501
502 ppat = GetPixPat(iflags.use_stone + 127); /* find which pat to get */
503 if (ppat) { /* in game window, using backgroung pattern, and have
504 pattern */
505 FillCRect(area, ppat);
506 DisposePixPat(ppat);
507 return;
508 }
509 }
510 EraseRect(area);
511}
512
513/*
514 * Recalculate the window based on new size, font, extent values,

Callers 2

clear_ttyFunction · 0.85
clear_tty_windowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected