| 620 | }; |
| 621 | |
| 622 | void |
| 623 | ClearCol(struct Window *w) |
| 624 | { |
| 625 | int bxorx, bxory, bxxlen, bxylen; |
| 626 | int incx, incy; |
| 627 | |
| 628 | bxylen = Col_Okay.TopEdge - (Col_BluePen.TopEdge + Col_BluePen.Height) - 1 |
| 629 | - txheight - 3; |
| 630 | bxxlen = Col_BluePen.Width - 2; |
| 631 | bxorx = Col_BluePen.LeftEdge + 1; |
| 632 | bxory = Col_BluePen.TopEdge + Col_BluePen.Height + 2; |
| 633 | |
| 634 | incx = bxxlen / amii_numcolors; |
| 635 | incy = bxylen - 2; |
| 636 | |
| 637 | bxxlen /= incx; |
| 638 | bxxlen *= incx; |
| 639 | bxxlen += 2; |
| 640 | |
| 641 | SetAPen(w->RPort, C_WHITE); |
| 642 | SetDrMd(w->RPort, JAM1); |
| 643 | RectFill(w->RPort, bxorx, bxory, bxorx + bxxlen + 1, bxory + bxylen); |
| 644 | |
| 645 | SetAPen(w->RPort, C_BLACK); |
| 646 | RectFill(w->RPort, bxorx + 1, bxory + 1, bxorx + bxxlen, |
| 647 | bxory + bxylen - 1); |
| 648 | } |
| 649 | |
| 650 | void |
| 651 | DrawCol(struct Window *w, int idx, UWORD *colors) |