* Fill an area with the background color */
| 493 | * Fill an area with the background color |
| 494 | */ |
| 495 | static void |
| 496 | erase_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, |
no outgoing calls
no test coverage detected