(x, y, width, height int)
| 533 | } |
| 534 | |
| 535 | func (s *Screen) queueRedraw(x, y, width, height int) { |
| 536 | if x < s.queueRedrawArea[0] { |
| 537 | s.queueRedrawArea[0] = x |
| 538 | } |
| 539 | if y < s.queueRedrawArea[1] { |
| 540 | s.queueRedrawArea[1] = y |
| 541 | } |
| 542 | if (x + width) > s.queueRedrawArea[2] { |
| 543 | s.queueRedrawArea[2] = x + width |
| 544 | } |
| 545 | if (y + height) > s.queueRedrawArea[3] { |
| 546 | s.queueRedrawArea[3] = y + height |
| 547 | } |
| 548 | } |
| 549 | |
| 550 | func (s *Screen) posWin(x, y int) *Window { |
| 551 | for _, win := range s.curWins { |