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

Function control_WriteStringToBuffer

Source/control.cpp:1140–1155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1138}
1139
1140BOOL control_WriteStringToBuffer(BYTE *str)
1141{
1142 int k;
1143 BYTE ichar;
1144
1145 k = 0;
1146 while (*str) {
1147 ichar = gbFontTransTbl[*str];
1148 str++;
1149 k += fontkern[fontframe[ichar]];
1150 if (k >= 125)
1151 return FALSE;
1152 }
1153
1154 return TRUE;
1155}
1156
1157/**
1158 * Sets a string to be drawn in the info box and then draws it.

Callers 3

GetStaffPowerFunction · 0.85
GetStaffSpellFunction · 0.85
GetItemPowerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected