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

Function gmenu_get_lfont

Source/gmenu.cpp:213–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213int gmenu_get_lfont(TMenuItem *pItem)
214{
215 char *text;
216 int i;
217 BYTE c;
218
219 if (pItem->dwFlags & GMENU_SLIDER)
220 return 490;
221 text = pItem->pszStr;
222 i = 0;
223 while (*text) {
224 c = gbFontTransTbl[(BYTE)*text++];
225 i += lfontkern[lfontframe[c]] + 2;
226 }
227 return i - 2;
228}
229
230BOOL gmenu_presskeys(int vkey)
231{

Callers 2

gmenu_draw_menu_itemFunction · 0.85
gmenu_left_mouseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected