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

Function ClearCol

sys/amiga/winreq.c:622–648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

620};
621
622void
623ClearCol(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
650void
651DrawCol(struct Window *w, int idx, UWORD *colors)

Callers 1

EditColorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected