MCPcopy Create free account
hub / github.com/diasurgical/devilution / DrawHelpLine

Function DrawHelpLine

Source/help.cpp:536–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

534}
535
536void DrawHelpLine(int always_0, int help_line_nr, char *text, char color)
537{
538 int sx, sy, width;
539 BYTE c;
540
541 width = 0;
542 sx = always_0 + 96 + PANEL_LEFT;
543 sy = help_line_nr * 12 + 204;
544 while (*text) {
545 c = gbFontTransTbl[(BYTE)*text];
546 text++;
547 c = fontframe[c];
548 width += fontkern[c] + 1;
549 if (c) {
550 if (width <= 577)
551 PrintChar(sx, sy, c, color);
552 }
553 sx += fontkern[c] + 1;
554 }
555}
556
557void DisplayHelp()
558{

Callers 1

DrawHelpFunction · 0.85

Calls 1

PrintCharFunction · 0.85

Tested by

no test coverage detected