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

Function DispCol

sys/amiga/winreq.c:732–757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

730}
731
732void
733DispCol(struct Window *w, int idx, UWORD *colors)
734{
735 char buf[50];
736 char *colname, *defval;
737
738 if (WINVERS_AMIV) {
739 colname = amiv_colnames[idx].name;
740 defval = amiv_colnames[idx].defval;
741 } else {
742 colname = amii_colnames[idx].name;
743 defval = amii_colnames[idx].defval;
744 }
745
746 if (colname == NULL) {
747 colname = "unknown";
748 defval = "unknown";
749 }
750 Move(w->RPort, Col_Save.LeftEdge, Col_Save.TopEdge - 7);
751 sprintf(buf, "%s=%03x default=%s%s", colname, colors[idx], defval,
752 " " + strlen(colname) + 1);
753 SetAPen(w->RPort, C_RED);
754 SetBPen(w->RPort, amii_otherBPen);
755 SetDrMd(w->RPort, JAM2);
756 Text(w->RPort, buf, strlen(buf));
757}
758
759void
760amii_setpens(int count)

Callers 2

EditColorFunction · 0.85
DrawColFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected