kopia lustrzana https://github.com/AlexandreRouma/SDRPlusPlus
Fixed credit screen not centered
rodzic
ff030397a4
commit
6f409b59c8
|
@ -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);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue