mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 14:54:29 +02:00
draw background behind bandwidth overlay stats
This commit is contained in:
parent
6483df69a4
commit
0fa1273cc9
1 changed files with 5 additions and 0 deletions
|
@ -315,6 +315,11 @@ void Stats::display(
|
||||||
verticalOffset = 0;
|
verticalOffset = 0;
|
||||||
horizontalOffset = _lastHorizontalOffset + _generalStatsWidth + 1;
|
horizontalOffset = _lastHorizontalOffset + _generalStatsWidth + 1;
|
||||||
|
|
||||||
|
if (columnOneWidth == _generalStatsWidth) {
|
||||||
|
drawBackground(backgroundColor, horizontalOffset, 0, _bandwidthStatsWidth, lines * STATS_PELS_PER_LINE + 10);
|
||||||
|
}
|
||||||
|
horizontalOffset += 5;
|
||||||
|
|
||||||
char packetsPerSecondString[30];
|
char packetsPerSecondString[30];
|
||||||
sprintf(packetsPerSecondString, "Packets In/Out: %d/%d", inPacketsPerSecond, outPacketsPerSecond);
|
sprintf(packetsPerSecondString, "Packets In/Out: %d/%d", inPacketsPerSecond, outPacketsPerSecond);
|
||||||
char averageMegabitsPerSecond[30];
|
char averageMegabitsPerSecond[30];
|
||||||
|
|
Loading…
Reference in a new issue