MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / GetWidth

Method GetWidth

src/SB/Core/gc/iTRC.cpp:273–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273S32 ROMFont::GetWidth(char* string)
274{
275 S32 iVar1;
276 void* image[1];
277 S32 x;
278 S32 y;
279 S32 width;
280
281 iVar1 = 0;
282 while (*string != '\0')
283 {
284 string = OSGetFontTexture(string, image, (s32*)&x, (s32*)&y, (s32*)&width);
285 iVar1 = iVar1 + width;
286 }
287 return iVar1;
288}
289
290void ROMFont::DrawTextBox(S32 x, S32 y, S32 width, S32 height, char* str)
291{

Callers

nothing calls this directly

Calls 1

OSGetFontTextureFunction · 0.85

Tested by

no test coverage detected