@@ -733,8 +733,8 @@ void CNetGraphPanel::DrawTextFields( int graphvalue, int x, int y, int w, netban
733733 int textTall = surface ()->GetFontTall ( font );
734734
735735 Q_snprintf ( sz, sizeof ( sz ), " fps:%4i ping: %i ms" , (int )(1 .0f / m_Framerate), (int )(m_AvgLatency*1000 .0f ) );
736-
737- g_pMatSystemSurface->DrawColoredText ( font, x, y, GRAPH_RED, GRAPH_GREEN, GRAPH_BLUE, 255 , sz );
736+
737+ g_pMatSystemSurface->DrawColoredText ( font, x, y, GRAPH_RED, GRAPH_GREEN, GRAPH_BLUE, 255 , " %s " , sz );
738738
739739 // Draw update rate
740740 DrawUpdateRate ( x + w, y );
@@ -752,12 +752,12 @@ void CNetGraphPanel::DrawTextFields( int graphvalue, int x, int y, int w, netban
752752 }
753753
754754 int totalsize = graph[ ( m_IncomingSequence & ( TIMINGS - 1 ) ) ].msgbytes [INetChannelInfo::TOTAL];
755-
755+
756756 Q_snprintf ( sz, sizeof ( sz ), " in :%4i %2.2f k/s " , totalsize, m_IncomingData );
757757
758758 int textWidth = g_pMatSystemSurface->DrawTextLen ( font, " %s" , sz );
759759
760- g_pMatSystemSurface->DrawColoredText ( font, x, y, GRAPH_RED, GRAPH_GREEN, GRAPH_BLUE, 255 , sz );
760+ g_pMatSystemSurface->DrawColoredText ( font, x, y, GRAPH_RED, GRAPH_GREEN, GRAPH_BLUE, 255 , " %s " , sz );
761761
762762 Q_snprintf ( sz, sizeof ( sz ), " lerp: %5.1f ms" , GetClientInterpAmount () * 1000 .0f );
763763
@@ -781,23 +781,23 @@ void CNetGraphPanel::DrawTextFields( int graphvalue, int x, int y, int w, netban
781781 }
782782 }
783783
784- g_pMatSystemSurface->DrawColoredText ( font, x + textWidth, y, interpcolor[ 0 ], interpcolor[ 1 ], interpcolor[ 2 ], 255 , sz );
784+ g_pMatSystemSurface->DrawColoredText ( font, x + textWidth, y, interpcolor[ 0 ], interpcolor[ 1 ], interpcolor[ 2 ], 255 , " %s " , sz );
785785
786786 Q_snprintf ( sz, sizeof ( sz ), " %3.1f/s" , m_AvgPacketIn );
787787 textWidth = g_pMatSystemSurface->DrawTextLen ( font, " %s" , sz );
788788
789- g_pMatSystemSurface->DrawColoredText ( font, x + w - textWidth - 1 , y, GRAPH_RED, GRAPH_GREEN, GRAPH_BLUE, 255 , sz );
789+ g_pMatSystemSurface->DrawColoredText ( font, x + w - textWidth - 1 , y, GRAPH_RED, GRAPH_GREEN, GRAPH_BLUE, 255 , " %s " , sz );
790790
791791 y += textTall;
792792
793793 Q_snprintf ( sz, sizeof ( sz ), " out:%4i %2.2f k/s" , out, m_OutgoingData );
794794
795- g_pMatSystemSurface->DrawColoredText ( font, x, y, GRAPH_RED, GRAPH_GREEN, GRAPH_BLUE, 255 , sz );
795+ g_pMatSystemSurface->DrawColoredText ( font, x, y, GRAPH_RED, GRAPH_GREEN, GRAPH_BLUE, 255 , " %s " , sz );
796796
797797 Q_snprintf ( sz, sizeof ( sz ), " %3.1f/s" , m_AvgPacketOut );
798798 textWidth = g_pMatSystemSurface->DrawTextLen ( font, " %s" , sz );
799799
800- g_pMatSystemSurface->DrawColoredText ( font, x + w - textWidth - 1 , y, GRAPH_RED, GRAPH_GREEN, GRAPH_BLUE, 255 , sz );
800+ g_pMatSystemSurface->DrawColoredText ( font, x + w - textWidth - 1 , y, GRAPH_RED, GRAPH_GREEN, GRAPH_BLUE, 255 , " %s " , sz );
801801
802802 y += textTall;
803803
@@ -809,7 +809,7 @@ void CNetGraphPanel::DrawTextFields( int graphvalue, int x, int y, int w, netban
809809
810810 textWidth = g_pMatSystemSurface->DrawTextLen ( font, " %s" , sz );
811811
812- g_pMatSystemSurface->DrawColoredText ( font, x, y, GRAPH_RED, GRAPH_GREEN, GRAPH_BLUE, 255 , sz );
812+ g_pMatSystemSurface->DrawColoredText ( font, x, y, GRAPH_RED, GRAPH_GREEN, GRAPH_BLUE, 255 , " %s " , sz );
813813
814814 y += textTall;
815815
@@ -832,7 +832,7 @@ void CNetGraphPanel::DrawTextFields( int graphvalue, int x, int y, int w, netban
832832 servercolor[ 2 ] = 0 ;
833833 }
834834
835- g_pMatSystemSurface->DrawColoredText ( font, x, y, servercolor[ 0 ], servercolor[ 1 ], servercolor[ 2 ], 255 , sz );
835+ g_pMatSystemSurface->DrawColoredText ( font, x, y, servercolor[ 0 ], servercolor[ 1 ], servercolor[ 2 ], 255 , " %s " , sz );
836836
837837 y += textTall;
838838 }
@@ -1119,14 +1119,14 @@ void CNetGraphPanel::DrawLargePacketSizes( int x, int w, int graphtype, float wa
11191119 char sz[ 32 ];
11201120 Q_snprintf ( sz, sizeof ( sz ), " %i" , nTotalBytes );
11211121
1122- int len = g_pMatSystemSurface->DrawTextLen ( m_hFont, sz );
1122+ int len = g_pMatSystemSurface->DrawTextLen ( m_hFont, " %s " , sz );
11231123
11241124 int textx, texty;
11251125
11261126 textx = rcFill.x - len / 2 ;
11271127 texty = MAX ( 0 , rcFill.y - 11 );
11281128
1129- g_pMatSystemSurface->DrawColoredText ( m_hFont, textx, texty, 255 , 255 , 255 , 255 , sz );
1129+ g_pMatSystemSurface->DrawColoredText ( m_hFont, textx, texty, 255 , 255 , 255 , 255 , " %s " , sz );
11301130 }
11311131 }
11321132}
0 commit comments