Re-enabled FPS display, fix other display issues

This commit is contained in:
2015-08-23 01:53:13 +10:00
parent 915660da0e
commit 41d601ab06
5 changed files with 13 additions and 9 deletions
+2 -2
View File
@@ -121,7 +121,7 @@ void LobbyMenu::RenderFrame(SDL_Renderer* renderer) {
//draw the server's info
serverVector[i].nameImage.DrawTo(renderer, boundingBox.x, boundingBox.y + boundingBox.h * i);
serverVector[i].playerCountImage.DrawTo(renderer, boundingBox.x, boundingBox.y + boundingBox.h * i);
serverVector[i].playerCountImage.DrawTo(renderer, boundingBox.x+300, boundingBox.y + boundingBox.h * i);
}
}
@@ -242,7 +242,7 @@ void LobbyMenu::HandleBroadcastResponse(ServerPacket* const argPacket) {
//fancy itoa
auto itoa_base10 = [](int i) -> std::string {
char str[20];
printf(str, "%d", i);
sprintf(str, "%d", i);
return std::string(str);
};