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

Function draw_titel

outdated/win/gem/wingem1.c:667–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665}
666
667static int
668draw_titel(PARMBLK *pb)
669{
670 static int pla[8];
671 GRECT work = *(GRECT *) &pb->pb_x;
672
673 if (rc_intersect((GRECT *) &pb->pb_xc, &work)) {
674 pla[0] = pla[1] = 0;
675 pla[2] = pb->pb_w - 1;
676 pla[3] = pb->pb_h - 1;
677 pla[6] = pla[4] = pb->pb_x; /* x_wert to */
678 pla[7] = pla[5] = pb->pb_y; /* y_wert to */
679 pla[6] += pb->pb_w - 1;
680 pla[7] += pb->pb_h - 1;
681
682 vro_cpyfm(x_handle, S_ONLY, pla, &Titel_bild, screen);
683 }
684
685 return (0);
686}
687
688static int
689draw_lines(PARMBLK *pb)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected