|
|
@ -235,6 +235,8 @@ int CHud::DrawHudString( int xpos, int ypos, int iMaxX, const char *szIt, int r, |
|
|
|
|
|
|
|
|
|
|
|
int DrawUtfString( int xpos, int ypos, int iMaxX, const char *szIt, int r, int g, int b ) |
|
|
|
int DrawUtfString( int xpos, int ypos, int iMaxX, const char *szIt, int r, int g, int b ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if (isXashFWGS()) |
|
|
|
|
|
|
|
{ |
|
|
|
// xash3d: reset unicode state
|
|
|
|
// xash3d: reset unicode state
|
|
|
|
gEngfuncs.pfnVGUI2DrawCharacterAdditive( 0, 0, 0, 0, 0, 0, 0 ); |
|
|
|
gEngfuncs.pfnVGUI2DrawCharacterAdditive( 0, 0, 0, 0, 0, 0, 0 ); |
|
|
|
|
|
|
|
|
|
|
@ -256,8 +258,12 @@ int DrawUtfString( int xpos, int ypos, int iMaxX, const char *szIt, int r, int g |
|
|
|
int c = (unsigned int)(unsigned char)*szIt; |
|
|
|
int c = (unsigned int)(unsigned char)*szIt; |
|
|
|
xpos += gEngfuncs.pfnVGUI2DrawCharacterAdditive( xpos, ypos, c, r, g, b, 0 ); |
|
|
|
xpos += gEngfuncs.pfnVGUI2DrawCharacterAdditive( xpos, ypos, c, r, g, b, 0 ); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return xpos; |
|
|
|
return xpos; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return gHUD.DrawHudString(xpos, ypos, iMaxX, szIt, r, g, b); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int CHud::DrawHudStringLen( const char *szIt ) |
|
|
|
int CHud::DrawHudStringLen( const char *szIt ) |
|
|
|