@@ -134,7 +134,7 @@ inline void WsClient::showConnectWindow()
134134 }
135135
136136 // =================== PRIVATE SERVERS ===============================
137- ImGui::SetNextWindowSize (ImVec2{300.0 , 300.0 });
137+ ImGui::SetNextWindowSize (ImVec2{300 .0f , 300 .0f });
138138 static char inputUrl[256 ] = " 127.0.0.1:9876/game" ;
139139 if (ImGui::Begin (" Private Server" , nullptr , ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse))
140140 {
@@ -498,7 +498,7 @@ inline void WsClient::runServerLoop()
498498 }
499499 }
500500 }
501- std::scoped_lock lg ( this ->mut ) ;
501+ std::scoped_lock lg{ this ->mut } ;
502502 this ->msgBuffer .clean ();
503503}
504504
@@ -513,7 +513,7 @@ inline void WsClient::showErrorPopup()
513513 }
514514 // Always center this next dialog
515515 ImVec2 center = ImGui::GetMainViewport ()->GetCenter ();
516- ImGui::SetNextWindowPos (center, ImGuiCond_Always, ImVec2{0.5 , 0.5 });
516+ ImGui::SetNextWindowPos (center, ImGuiCond_Always, ImVec2{0 .5f , 0 .5f });
517517 ImGui::OpenPopup (" Error" , ImGuiPopupFlags_NoOpenOverExistingPopup);
518518 if (ImGui::BeginPopupModal (" Error" , nullptr , ImGuiWindowFlags_AlwaysAutoResize))
519519 {
@@ -536,7 +536,7 @@ inline void WsClient::showWinnerPopup()
536536{
537537 // Always center this next dialog
538538 ImVec2 center = ImGui::GetMainViewport ()->GetCenter ();
539- ImGui::SetNextWindowPos (center, ImGuiCond_Always, ImVec2{0.5 , 0.5 });
539+ ImGui::SetNextWindowPos (center, ImGuiCond_Always, ImVec2{0 .5f , 0 .5f });
540540 ImGui::OpenPopup (" GameOver" , ImGuiPopupFlags_NoOpenOverExistingPopup);
541541 if (ImGui::BeginPopupModal (" GameOver" , nullptr , ImGuiWindowFlags_AlwaysAutoResize))
542542 {
0 commit comments