mirror of
				https://github.com/AlexandreRouma/SDRPlusPlus.git
				synced 2025-10-31 00:48:11 +01:00 
			
		
		
		
	Fixed credit screen not centered
This commit is contained in:
		| @@ -55,6 +55,10 @@ namespace credits { | ||||
|         ImGui::Spacing(); | ||||
|         ImGui::Text("SDR++ v" VERSION_STR); | ||||
|  | ||||
|         ImVec2 dispSize = ImGui::GetIO().DisplaySize; | ||||
|         ImVec2 winSize = ImGui::GetWindowSize(); | ||||
|         ImGui::SetWindowPos(ImVec2(std::round((dispSize.x/2) - (winSize.x/2)), std::round((dispSize.y/2) - (winSize.y/2)))); | ||||
|  | ||||
|         ImGui::EndPopup(); | ||||
|         ImGui::PopStyleVar(1); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user