MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / SCR_DrawTextRightAlign

Function SCR_DrawTextRightAlign

neo/framework/Console.cpp:178–186  ·  view source on GitHub ↗

================== SCR_DrawTextRightAlign ================== */

Source from the content-addressed store, hash-verified

176==================
177*/
178void SCR_DrawTextRightAlign( float &y, const char *text, ... ) {
179 char string[MAX_STRING_CHARS];
180 va_list argptr;
181 va_start( argptr, text );
182 int i = idStr::vsnPrintf( string, sizeof( string ), text, argptr );
183 va_end( argptr );
184 renderSystem->DrawSmallStringExt( 635 - i * SMALLCHAR_WIDTH, y + 2, string, colorWhite, true, localConsole.charSetShader );
185 y += SMALLCHAR_HEIGHT + 4;
186}
187
188
189

Callers 2

SCR_DrawMemoryUsageFunction · 0.85
SCR_DrawAsyncStatsFunction · 0.85

Calls 1

DrawSmallStringExtMethod · 0.80

Tested by

no test coverage detected